Solved

How can I make a batch file pause for "x" amount time before  continuing to process other lines?

Posted on 2003-10-22
4
1,207 Views
Last Modified: 2013-12-29
How can I make a batch file pause for "x" amount time before
continuing to process other lines?

(where "x" is some unit of time rather than some action or event)
0
Comment
Question by:happycat
  • 2
  • 2
4 Comments
 
LVL 59

Accepted Solution

by:
LeeTutor earned 100 total points
ID: 9600291
In your other question, I mentioned a book called Pc Magazine DOS Power Tools Techniques, Tricks and Utilities, by Paul Somerson, which contained a utility called LOOP.COM which is useful for programming loops in a batch file.  This book also has a useful batch file utility for pausing for x seconds (or until a key is pressed) called WAIT.COM.  The utility can only wait up to 59 seconds, but if you need longer than that, use multiple instances or even a loop to extend it.  Here is where you can get the book:

http://www.amazon.com/exec/obidos/search-handle-url/index%3Dbooks%26field-keywords%3Ddos%252520power%252520tools%26store-name%3Dbooks/104-7162452-4822318
0
 

Author Comment

by:happycat
ID: 9602165
Thanks. I found a freeware utility called "hold!"

usage [hold!] [seconds] [option]
option c is to show countdown.

http://www.filelibrary.com/Contents/DOS/51/5.html
http://www.filelibrary.com:8080/cgi-bin/freedownload/DOS/h/51/hold!.zip

Works like a charm.
0
 

Author Comment

by:happycat
ID: 9602182
Correction, it's shareware.
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 9602300
As requested by you in your other question, I have sent you an email attachment of both loop.com and wait.com zipped up.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now