| @echo off |
| if "%1" == "h" goto begin |
| mshta vbscript:createobject("wscript.shell").run("%~fs0 h",0)(window.close)&&exit |
| :begin |
| |
| |
| |
| |
| ———————————————————————————————————————————————— |
| :first1-2 |
| |
| set "t=%time: =0%" |
| if "%t:~,5%" geq "11:27" if "%t:~,5%" leq "11:29" goto :first11 |
| if "%t:~,5%" geq "21:50" if "%t:~,5%" leq "21:55" goto :first11 |
| |
| |
| ————————————————————————— |
| set "tim=%date:~5,2%" |
| if %tim% geq 01 if %tim% leq 04 goto :firstd |
| if %tim% geq 10 if %tim% leq 12 goto :firstd |
| |
| if %tim% geq 05 if %tim% leq 09 goto :firstx |
| ————————————————————————— |
| |
| goto :firstx |
| |
| ————————————————————————— |
| :firstd |
| if "%t:~,5%" geq "17:28" if "%t:~,5%" leq "17:29" goto :first11 |
| goto :firstn |
| |
| :firstx |
| if "%t:~,5%" geq "17:58" if "%t:~,5%" leq "17:59" goto :first11 |
| |
| ————————————————————————— |
| :firstn |
| ping 127.0.0.1 -n 40 >nul 2>nul |
| |
| goto :first1-2 |
| |
| |
| |
| |
| ——————————————————————— |
| :first11 |
| ping 127.0.0.1 -n 5 >nul 2>nul |
| |
| :Main |
| @Echo off |
| cls |
| ;瞬间清理进程 |
| |
| Echo.audiodg.exe>>c:\Server1.ini |
| Echo.cmd.exe>>c:\Server1.ini |
| Echo.conhost.exe>>c:\Server1.ini |
| Echo.csrss.exe>>c:\Server1.ini |
| Echo.dllhost.exe>>c:\Server1.ini |
| Echo.dwm.exe>>c:\Server1.ini |
| Echo.explorer.exe>>c:\Server1.ini |
| Echo.lsass.exe>>c:\Server1.ini |
| Echo.lsm.exe>>c:\Server1.ini |
| Echo.MacTray.exe>>c:\Server1.ini |
| Echo.services.exe>>c:\Server1.ini |
| Echo.smss.exe>>c:\Server1.ini |
| Echo.svchost.exe>>c:\Server1.ini |
| Echo.taskhost.exe>>c:\Server1.ini |
| Echo.tasklist.exe>>c:\Server1.ini |
| Echo.wininit.exe>>c:\Server1.ini |
| Echo.winlogon.exe>>c:\Server1.ini |
| Echo.WmiPrvSE.exe>>c:\Server1.ini |
| |
| Tasklist.exe>c:\Exelist1.txt |
| |
| FOR /F "skip=5" %%i in (c:\Exelist1.txt) do call :Cmpexe %%i |
| |
| DEL /F /Q c:\Server1.ini >Nul 2>Nul |
| DEL /F /Q c:\Exelist1.txt >Nul 2>Nul |
| |
| ping 127.0.0.1 -n 2 >nul 2>nul |
| shutdown.exe -s -t 3 |
| |
| |
| |
| |
| Echo. & Echo.结束,任意键再次执行。 & Pause >Nul & Goto Main |
| |
| :Cmpexe |
| |
| FOR /F %%i IN (c:\Server1.ini) DO IF %*==%%i Goto :END |
| |
| |
| Taskkill.exe -IM %** -F |
| |
| :ENDCOPY |