Rework ExecCommand()

This commit is contained in:
Yorick Barbanneau 2018-04-10 15:35:41 +02:00
parent 0529b16387
commit 1739c2f800

View file

@ -598,8 +598,7 @@ function ExecCommand {
return return
} }
try { try {
Start-Process -wait -filepath $path -ArgumentList $args.split(" ") Start-Process -NoNewWindow -wait -filepath $path -ArgumentList $args
Write-Host -ForegroundColor Green "done"
} }
catch { catch {
Write-Host -NoNewLine -ForegroundColor Red "Error`n`t" Write-Host -NoNewLine -ForegroundColor Red "Error`n`t"