Solved

DOS - How to pause for 5 minutes

Posted on 2000-03-02
6
288 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

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

Expert Comment

by:paasky
Comment Utility
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
Comment Utility
Ok, the new version can be downloaded from my server.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For a variety of reasons, it sometimes makes sense to reboot a Windows-based computer on a regular, perhaps daily basis. This "cures" a lot of ills by resetting processes, flushing caches, refreshing memory, and reestablish network connections. In a…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now