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,213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

623 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