This commit is contained in:
OatmealDome
2024-06-29 22:40:24 -04:00
parent 99573e6a82
commit 21e8c982d1

View File

@@ -64,7 +64,12 @@ function AttemptToExecuteCommand(cmd)
{
try
{
return wshShell.Exec(cmd).ExitCode;
var exec = wshShell.Exec(cmd)
// wait until the command has finished
while (exec.Status == 0) {}
return exec.ExitCode;
}
catch (e)
{