briant Posted May 26, 2010 Posted May 26, 2010 Here's an example GUI application that won't wait, no matter if it's on the command line or in a script:at the command prompt:> start "" /wait "c:/Program Files/Mozilla Firefox/firefox.exe" => DOESN'T WAITin a .cmd file:start "" "c:/Program Files/Mozilla Firefox/firefox.exe"orstart "" /wait "c:/Program Files/Mozilla Firefox/firefox.exe" => DOESN'T WAITi think it's a function of how the application is programmed to exit.
Outbreaker Posted May 27, 2010 Posted May 27, 2010 (edited) You could try this:START "" /WAIT "C:/Program Files/Mozilla Firefox/firefox.exe":CHECKping -n 10 localhost 1> NULTASKLIST /v /fi "IMAGENAME eq firefox.exe" 2>&1 > NULIF ERRORLEVEL 1 GOTO CHECK Edited May 27, 2010 by Outbreaker
submix8c Posted May 27, 2010 Posted May 27, 2010 i think it's a function of how the application is programmed to exit.I think that's what I was trying to say.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now