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,206 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Windows Mobile Barcode Scanning These days almost every product has a barcode in some way... amongst there are 1D barcodes en 2D barcodes.. From http://www.barcodeman.com/faq/2d.php I found some handy definitions and insights. 1D barcodes …
The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

707 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

20 Experts available now in Live!

Get 1:1 Help Now