kill server window properly

This commit is contained in:
SpikeHD 2022-04-25 18:51:53 -07:00
parent cae6043664
commit daf9ce477f

View File

@ -83,6 +83,8 @@ echo Done, see you next time
:: Just in case the user has corutils installed, use this hacky timeout instead of the timeout command :: Just in case the user has corutils installed, use this hacky timeout instead of the timeout command
ping 127.0.0.1 -n 2 > nul ping 127.0.0.1 -n 2 > nul
taskkill /f /fi "WINDOWTITLE eq Administrator: PS Launcher Script" || taskkill /f /fi "WINDOWTITLE eq PS Launcher Script" :: Attempt to kill either
taskkill /f /fi "WINDOWTITLE eq Administrator: PS Launcher Script"
taskkill /f /fi "WINDOWTITLE eq PS Launcher Script"
exit /b exit /b