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
Solved

DOS - How to pause for 5 minutes

Posted on 2000-03-02
6
293 Views
Last Modified: 2013-12-29
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
Comment
Question by:DrRichard
  • 3
  • 2
6 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 2578995
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
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 2579037
Sorry, don't think I can pull it off tonight - QB SLEEP command not working as I thought it should.
0
 
LVL 10

Accepted Solution

by:
paasky earned 50 total points
ID: 2579382
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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 

Author Comment

by:DrRichard
ID: 2628399
Program needs to pause for a specific time duration and continue.  No prompts should be requested.
0
 
LVL 10

Expert Comment

by:paasky
ID: 2628562
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
 
LVL 10

Expert Comment

by:paasky
ID: 2628944
Ok, the new version can be downloaded from my server.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Upgrade Windows 7 pro to Enterprise 8 78
LogmeIn using Linux Ubuntu 16.04 6 63
Internet Explorer crashes on exit 4 30
User wants to log with Username or Email 4 52
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

828 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