From daf9ce477f5a9063b275aa3c9283fe10e8da82a7 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Mon, 25 Apr 2022 18:51:53 -0700 Subject: [PATCH] kill server window properly --- scripts/private_server_launch.cmd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/private_server_launch.cmd b/scripts/private_server_launch.cmd index 7641cb9..787e5a0 100644 --- a/scripts/private_server_launch.cmd +++ b/scripts/private_server_launch.cmd @@ -82,7 +82,9 @@ echo Done, see you next time :: 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 - -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 \ No newline at end of file