briant Posted May 26, 2010 Share 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. Link to comment Share on other sites More sharing options...
Outbreaker Posted May 27, 2010 Share 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 Link to comment Share on other sites More sharing options...
submix8c Posted May 27, 2010 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now