Thursday, September 12, 2013

Run an application with PowerShell and wait until it is finished


Start-Process myprogram.exe -NoNewWindow -Wait
Or if you would like a more concise mechanism, there's always the Out-Null hack:
myprogram.exe | Out-Null
source

No comments:

Post a Comment