Commit 0a99e063 by 浔阳陌客

2022-03-29 kill_start.bat启动只删除java父进程的cmd

parent e73b2268
......@@ -146,9 +146,9 @@ echo pause
echo create restart.bat
(
echo @echo off
echo for ^/F %%%%a in ('wmic process where ^^(Name^^="java.exe"^^) get ParentProcessId ^^^| findstr "[0-9]"') do ^( taskkill /f /pid %%%%a ^)
echo taskkill /f /im java.exe
echo taskkill /f /im cmd.exe
echo C:\Users\Administrator\Desktop\client\run.bat
echo C:\Users\Administrator\Desktop\client\start.bat
) > %deskclientfolder%\kill_start.bat
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment