Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

DOS/Other DOS/Other
Search Search
Search for:
Tech Support Guy > > >

Solved: DOS - Sleep


(!)

trusp's Avatar
trusp trusp is offline
Junior Member with 25 posts.
THREAD STARTER
 
Join Date: Dec 2008
Experience: Beginner
11-Feb-2009, 05:52 AM #1
Solved: DOS - Sleep
Hi

I need to make my batch file(.bat - DOS based file) to sleep for 2 minutes.

Is there any option to make my batch file to sleep.
I tried sleep and wait command but it responded as

'sleep' is not recognized as an internal or external command,
operable program or batch file.

'wait' is not recognized as an internal or external command,
operable program or batch file.

Please help me asap

Trusp
crashie's Avatar
crashie crashie is offline
Computer Specs
Member with 33 posts.
 
Join Date: Jan 2009
Location: UK
Experience: Advanced
11-Feb-2009, 08:35 AM #2
use the choice command with the /T and /D switches

choice /? to show options in a command prompt

Regards,

Dean
Squashman's Avatar
Trusted Advisor with 19,647 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
11-Feb-2009, 04:08 PM #3
choice is not a valid cmd in Windows XP.
You can get the sleep cmd from the NT Resource kit.

Here are other ways to do it.
http://www.robvanderwoude.com/wait.php
trusp's Avatar
trusp trusp is offline
Junior Member with 25 posts.
THREAD STARTER
 
Join Date: Dec 2008
Experience: Beginner
12-Feb-2009, 01:34 AM #4
I solved it by using

sleep 120

Thank u very much !!!
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑