• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

DOS - How to pause for 5 minutes

I have a batch file and I need to wait for 5 minutes for certain processes to complete before continuing.
I can use the "pause" command but how do I make it wait for 5 minutes and then respond to the "Strike any key to continue ...." automatically.
0
DrRichard
Asked:
DrRichard
  • 3
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Give me until 1 a.m. Eastern Time (NY) and I'll have a program posted at http://www.whatisoutthere.com/computers/software.html
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Sorry, don't think I can pull it off tonight - QB SLEEP command not working as I thought it should.
0
 
paaskyCommented:
Hello DrRichard,

I made a small "wait" program for you. You can download it from http://www.iwn.fi/paasky/pub/wait.exe

usage:

wait <seconds>

for eg.

wait 300

means wait 5 minutes.

The program can be interrupted with <Esc> key, otherwise it wait <seconds> and then prompts user to strike any key.

Hope this helps,
Paasky
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
DrRichardAuthor Commented:
Program needs to pause for a specific time duration and continue.  No prompts should be requested.
0
 
paaskyCommented:
Hello DrRichard,

Sorry I must have misunderstood this "how do I make it wait for 5 minutes and then respond to the "Strike any key to continue ...." automatically."

I can remove "Strike any key to continue ...." -feature and compile the program again when I get home. I let you know when you can download modified version of this little program.

Regards,
Paasky

0
 
paaskyCommented:
Ok, the new version can be downloaded from my server.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now