Solved

Sleep command

Posted on 2004-04-22
10
5,705 Views
Last Modified: 2008-03-10
Hi,

How many minutes/seconds when I do "sleep 1000" in my batch script?

Thanks!
0
Comment
Question by:shellyp
  • 8
  • 2
10 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 500 total points
Comment Utility
1000 seconds!

Pete
0
 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
16 mins 40 seconds
0
 

Author Comment

by:shellyp
Comment Utility
Thanks PeteLong.  So, If i do "sleep 1", that's 1 sec.  Right?  thx.
0
 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
Sleep Syntax

--------------------------------------------------------------------------------

sleep time

Where:
time
is the number of seconds to pause.
For example:

Add a line in a batch file to pause the batch for an hour before running the next command in a batch file.
sleep 3600
Wait 10 seconds before running next command:
sleep 10
http://www.tburke.net/info/reskittools/topics/sleep_syntax.htm
0
 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
You are correct my friend Yes :)
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
a better link http://www.ss64.com/nt/sleep.html just so you know Im not fibbing ;)
0
 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
Is that OK?
0
 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
oh youve allready closed it LOL

ThanQ - I posted to your other question also :)

Pete
0
 

Author Comment

by:shellyp
Comment Utility
Thanks for your help!
0
 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
No - ThanQ
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

8 Experts available now in Live!

Get 1:1 Help Now