mirror of
https://github.com/corpnewt/ProperTree.git
synced 2026-08-12 22:31:30 +04:00
Enclose the target script path in quotes
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ if not "!_args!" == "" (
|
|||||||
REM And our target
|
REM And our target
|
||||||
call :cleanArg "_target"
|
call :cleanArg "_target"
|
||||||
REM Let's build our command
|
REM Let's build our command
|
||||||
powershell -c "& {$a=@();foreach($x in $args){foreach($y in (Invoke-Expression('Write-Output -- '+$x-replace'\$',\"`0\"))-replace\"`0\",'$$'){$a+='\"{0}\"'-f$y}};$c=$a-join' ';$d='/c \"{0}\"'-f$c;Start-Process '%COMSPEC:'=''%' -WindowStyle hidden -ArgumentList $d}" '!_target!!_args!'
|
powershell -c "& {$a=@();foreach($x in $args){foreach($y in (Invoke-Expression('Write-Output -- '+$x-replace'\$',\"`0\"))-replace\"`0\",'$$'){$a+='\"{0}\"'-f$y}};$c=$a-join' ';$d='/c \"{0}\"'-f$c;Start-Process '%COMSPEC:'=''%' -WindowStyle hidden -ArgumentList $d}" '\"!_target!\"!_args!'
|
||||||
endlocal
|
endlocal
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user