回复 15# Batcher - @echo off
- %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
- dir C:\Windows\System32\handle.exe
- for /f "tokens=3,6 delims=: " %%i in ('C:\Windows\System32\handle.exe -a "RAN2_ONLINE_XV"') do (
- set "PID=%%i"
- set "HandleID=%%j"
- )
- echo Find process ID: %PID%
- echo Find handle ID: %HandleID%
- C:\Windows\System32\handle.exe -p %PID% -c %HandleID% -y
- pause
复制代码 我加上第一行能双击bat直接以管理员身份启动了,感謝Batcher |