本帖最后由 went 于 2020-4-3 13:54 编辑
- @echo off&color 2f
- %1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","REM",,"runas",1)(window.close)&exit
- set "s=60"
- :loop
- REM --------------------------------CODE1-----------------------------------
- taskkill /f /im "werfault.exe"
- timeout /t %s% /nobreak >nul 2>nul
- REM --------------------------------CODE2-----------------------------------
- tasklist /FI "username eq dc2-user" | find /C "vds-qt.exe" > temp.txt
- set /p num= < temp.txt
- del /F temp.txt
- echo %num%
- if "%num%" == "0" del /F C:\Users\dc2-user\AppData\Roaming\VDS\mncache.dat C:\Users\dc2-user\AppData\Roaming\VDS\mnpayments.dat && start /D "C:\Program Files\vds" vds-qt.exe
- timeout /t %s% /nobreak >nul 2>nul
- REM --------------------------------CODE3-----------------------------------
- REM name
- set "process=vds-qt.exe"
- REM memory(KB)
- set "m=6144000"
- echo %process%
- echo %m%KB
- echo.
- tasklist /fi "IMAGENAME eq %process%" | findstr /i "pid = %process%"
- taskkill /f /fi "IMAGENAME eq %process%" /fi "MEMUSAGE gt %m%"
- timeout /t %s% /nobreak >nul 2>nul
- cls & goto :loop
- pause&exit
复制代码 回复 11# heike045 |