skip cmd relaunch on PS 2.0

This commit is contained in:
2025-08-11 01:41:53 +05:30
parent 66b1789202
commit bda8e25dc6

View File

@@ -120,7 +120,7 @@ if (-not $args) {
}
if ($psv -lt 3) {
$p = saps -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" -el $args""" -Verb RunAs -PassThru
$p = saps -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" -el -qedit $args""" -Verb RunAs -PassThru
$p.WaitForExit()
}
else {