idealone Posted March 4, 2008 Share Posted March 4, 2008 Hi guys, I need to use sleep or wait for few seconds between commands, i am using win XP, so i read that sleep command is not recognized, they say ping command works...but not sure how to use it!!So can anyone lighten me up whats the best way to solve this issue..batch file:start /b java -jar Y:\selenium-server-0.9.2/selenium-server.jar #this command starts my server# (I would want to wait/sleep for 20 or 30 seconds before going to next command)start /b run myfile.exe # this is my second command to run my programThanks in Advance Link to comment Share on other sites More sharing options...
gunsmokingman Posted March 4, 2008 Share Posted March 4, 2008 Hi guys, I need to use sleep or wait for few seconds between commands, i am using win XP, so i read that sleep command is not recognized, they say ping command works...but not sure how to use it!!So can anyone lighten me up whats the best way to solve this issue..batch file:start /b java -jar Y:\selenium-server-0.9.2/selenium-server.jar #this command starts my server# (I would want to wait/sleep for 20 or 30 seconds before going to next command)start /b run myfile.exe # this is my second command to run my programThanks in AdvanceTry this[code]@Echo OffCLSMode 55,7Color F9Title Connect To Serverstart /b java -jar Y:\selenium-server-0.9.2/selenium-server.jarEcho.Echo Processing Please Wait......ping -n 30 127.0.0.1>nulstart /b run myfile.exe[/code] Link to comment Share on other sites More sharing options...
idealone Posted March 6, 2008 Author Share Posted March 6, 2008 Hi guys, I need to use sleep or wait for few seconds between commands, i am using win XP, so i read that sleep command is not recognized, they say ping command works...but not sure how to use it!!So can anyone lighten me up whats the best way to solve this issue..batch file:start /b java -jar Y:\selenium-server-0.9.2/selenium-server.jar #this command starts my server# (I would want to wait/sleep for 20 or 30 seconds before going to next command)start /b run myfile.exe # this is my second command to run my programThanks in AdvanceTry this[code]@Echo OffCLSMode 55,7Color F9Title Connect To Serverstart /b java -jar Y:\selenium-server-0.9.2/selenium-server.jarEcho.Echo Processing Please Wait......ping -n 30 127.0.0.1>nulstart /b run myfile.exe[/code]Thanks for your reply, Is there any other means of waiting apart from ping, as using ping command is blocked in my company. Link to comment Share on other sites More sharing options...
Yzöwl Posted March 6, 2008 Share Posted March 6, 2008 Yes, take a look at this! Link to comment Share on other sites More sharing options...
idealone Posted March 10, 2008 Author Share Posted March 10, 2008 Yes, take a look at this!SuperGREAT WORK!!!!! Link to comment Share on other sites More sharing options...
war59312 Posted March 30, 2008 Share Posted March 30, 2008 timeout.exe is easy enough..Moderator NoteThe non-Microsoft download link has been removed, the Windows NT Resource Kit which contains this utility is available directly from Microsoft. 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