Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell start a process and wait for it to finish

$proc = Start-Process -Wait -FilePath $procPath -ArgumentList $argument
do{sleep 1}while(Get-Process -Name $procName -ErrorAction SilentlyContinue)
 
PREVIOUS NEXT
Tagged: #powershell #start #process #wait #finish
ADD COMMENT
Topic
Name
8+8 =