Solved

DOS - How to pause for 5 minutes

Posted on 2000-03-02
6
294 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

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