diff --git a/ProperTreeQuiet.bat b/ProperTreeQuiet.bat index 59170e8..d86348c 100644 --- a/ProperTreeQuiet.bat +++ b/ProperTreeQuiet.bat @@ -43,7 +43,7 @@ if not "!_args!" == "" ( REM And our target call :cleanArg "_target" 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 exit /b