分类 Dos批处理 下的文章

@echo off
(cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1
title Office 2019 Activator r/Piracy
echo Converting... & mode 40,25
(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)
cscript //nologo ospp.vbs /unpkey:6MWKP >nul&cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul&set i=1
:server
if %i%==1 set KMS_Sev=kms7.MSGuides.com
if %i%==2 set KMS_Sev=kms8.MSGuides.com
if %i%==3 set KMS_Sev=kms9.MSGuides.com
cscript //nologo ospp.vbs /sethst:%KMS_Sev% >nul
echo %KMS_Sev% & echo Activating...
cscript //nologo ospp.vbs /act | find /i "successful" && (echo Complete) || (echo Trying another KMS Server & set /a i+=1 & goto server)
pause >nul
exit

@echo off
choice /t 5 /d y /n >nul
:start
echo [%time% %date%] Press F8
"D:\tools\Hot Virtual Keyboard\hvk.exe" /ACTION F8
choice /t 2 /d y /n >nul
echo [%time% %date%] Press F9
"D:\tools\Hot Virtual Keyboard\hvk.exe" /ACTION F9
choice /t 2 /d y /n >nul
echo [%time% %date%] Press F10
"D:\tools\Hot Virtual Keyboard\hvk.exe" /ACTION F10
choice /t 2 /d y /n >nul
goto start

@echo off

if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit)

set DNS1=8.8.8.8
set DNS2=8.8.4.4

echo change DNS1 to %DNS1%
echo change DNS2 to %DNS2%

echo =========== START ============

for /f "tokens=1,2,3* skip=3" %%i in ('netsh int show interface') do (

netsh interface ipv4 add dns "%%l" %DNS1% index=1 > nul
netsh interface ipv4 add dns "%%l" %DNS2% index=2 > nul
echo "%%l" change complete!!

)

ipconfig /flushdns > nul

echo =========== COMPLETED ============

pause