diff --git a/scripts/Launch.cmd b/scripts/Launch.cmd index 526ae4b3..c887f665 100644 --- a/scripts/Launch.cmd +++ b/scripts/Launch.cmd @@ -242,7 +242,7 @@ if defined L_NCMD ( rem use Powershell's window instead of %CON% echo UAC.ShellExecute "%POWERSHELL%", "%ps_args% -File "%script%"", "", "runas", 3 >> "%bin%\tmp\Elevate.vbs" ) else ( - echo UAC.ShellExecute "%CON%", "-run %POWERSHELL% %ps_args% -File "%script%" -new_console:n", "", "runas", 1 >> "%bin%\tmp\Elevate.vbs" + echo UAC.ShellExecute "%CON%", "-run %POWERSHELL% %ps_args% -File "^"%script%^"" -new_console:n", "", "runas", 1 >> "%bin%\tmp\Elevate.vbs" ) rem Run