Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 10-06-2009
Member
 
Join Date: Apr 2009
Posts: 97
How do i put timeouts in batch files

I'm running Windows Xp as my operating system. I would like to know that how do i put timeouts in batch files. Can any body provide me the correct solution for doing so? Does any body have any idea about it? Kindly provide me the correct solution for the above issue. Any kind of help on the above issue would be appreciated.
Reply With Quote
  #2  
Old 10-06-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: How do i put timeouts in batch files

In order to make a batch file wait for a number of seconds, you can try out the following steps.

For any MS-DOS or Windows version with a TCP/IP client, PING can be used to delay execution for a number of seconds. If specified (-w switch), PING will wait for a number of milliseconds between two PINGS before giving a time-out.

Quote:
PING 1.1.1.1 -n 1 -w 60000 >NUL
Reply With Quote
  #3  
Old 10-06-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: How do i put timeouts in batch files

I think you should try to use the Timeout.exe command from the Win2k Resource Kit. It will help you in putting the timeouts on a particular batch file.
Reply With Quote
  #4  
Old 10-06-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: How do i put timeouts in batch files

According to my best of knowledge, i think you need to use "net start" and "net stop" command in order to put timeouts in batch files. Timeout.exe seems to consume less processor time time than Sleep.exe. Timeout will pause command execution for a number of seconds, after which it continues without requiring a user keystroke. If the user does press a key at any point, execution will resume immediately.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How do i put timeouts in batch files"
Thread Thread Starter Forum Replies Last Post
GPO Timeouts !Starr! Active Directory 4 04-01-2014 05:00 PM
Cool Batch Files Muwafaq Tips & Tweaks 13 11-08-2011 05:18 PM
Conditional statements in batch files Gillian Anderson Software Development 5 01-04-2010 11:21 AM
How to convert batch files SoftwareGuy Tips & Tweaks 1 03-04-2009 05:26 PM
Group policy and batch files KAUSHALa Active Directory 4 11-11-2008 05:01 AM


All times are GMT +5.5. The time now is 01:37 PM.