First time poster here

My problem is I want to execute an exe and I want the command prompt to wait until the program is finished.
Not sure if I have explained myself all that well so if you need any more information I'll provide it.
Thanks,
Dave
Moderator: DosItHelp
Code: Select all
nircmd exec show "%systemdrive%\spybot\RunSpybot.exe"
nircmd win hide ititle "SpyBot_Loader"
nircmd waitprocess RunSpybot.exe
nircmd waitprocess Spybotsd.exe
nircmd win show ititle "SpyBot_Loader"
Code: Select all
nircmd waitprocess RunSpybot.exe
Code: Select all
start "" /wait "name.exe"