LV. 45
GP 2k

RE:【問題】妮姬 PC版關掉後佔用問題

樓主 無星之夜 coy51004
GP91 BP-
開文字文件
貼上下列指令
然後副檔名改成bat檔
可以連背景程式都一次關掉



@echo off
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"

taskkill /f /im SGuard64.exe
taskkill /f /im nikke_launcher.exe
taskkill /f /im tbs_browser.exe
taskkill /f /im TQMCenter_64.exe
taskkill /f /im nikke.exe
taskkill /f /im UnityCrashHandler64.exe
taskkill /f /im intl_service.exe
91
-
板務人員: