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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

685 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