NirCmd Command Reference - waitprocess

waitprocess [process] {Command}
Wait until the specified process is closed.

In the [process] parameter, you can specify the full path of the process filename (e.g: 'C:\Program Files\Internet Explorer\iexplore.exe') or the name of the process only, without the path (e.g.: iexplore.exe). You can also specify the Process ID, by adding the '/' character as a prefix (e.g. /1120).
Optionally, you can also specify a command to execute after the process was closed.
Examples:
waitprocess iexplore.exe
waitprocess firefox.exe speak text "Firefox was closed"
waitprocess "c:\winnt\system32\calc.exe"
waitprocess /1830

Other commands:
abortshutdownbeepcdromchangeappvolumechangebrightness
changesysvolumechangesysvolume2clipboardclonefiletimecloseprocess
cmdshortcutcmdshortcutkeycmdwaitconsolewriteconvertimage
convertimagesdebugwritedlgdlganyelevate
elevatecmdemptybinexecexec2execmd
exitwinfilldeletegachibernateinetdial
infoboxinidelsecinidelvalinisetvalinitshutdown
killprocesslockwsloopmediaplaymemdump
monitormovecursormultiremotemuteappvolumemutesubunitvolume
mutesysvolumeparamsfileqboxqboxcomqboxcomtop
qboxtoprasdialrasdialdlgrashangupregdelkey
regdelvalregeditregsetvalregsvrremote
restartexplorerreturnvalrunassavescreenshotsavescreenshotfull
savescreenshotwinscreensaverscreensavertimeoutscriptsendkey
sendkeypresssendmouseservicesetappvolumesetbrightness
setconsolecolorsetconsolemodesetcursorsetcursorwinsetdefaultsounddevice
setdialuplogonsetdisplaysetfilefoldertimesetfiletimesetprimarydisplay
setprocessaffinitysetprocessprioritysetsubunitvolumedbsetsysvolumesetsysvolume2
setvolumeshellcopyshellrefreshshexecshortcut
showsounddevicesspeakstandbystdbeepsysrefresh
trayballoonurlshortcutwaitwaitprocesswin

NirCmd Web Page

Download NirCmd

NirSoft Web Site