Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sleep command

Posted on 2004-04-22
10
Medium Priority
?
5,719 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 2000 total points
ID: 10892527
1000 seconds!

Pete
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 10892536
16 mins 40 seconds
0
 

Author Comment

by:shellyp
ID: 10892550
Thanks PeteLong.  So, If i do "sleep 1", that's 1 sec.  Right?  thx.
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
LVL 57

Expert Comment

by:Pete Long
ID: 10892560
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
ID: 10892563
You are correct my friend Yes :)
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 10892591
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
ID: 10892843
Is that OK?
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 10892857
oh youve allready closed it LOL

ThanQ - I posted to your other question also :)

Pete
0
 

Author Comment

by:shellyp
ID: 10892865
Thanks for your help!
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 10892897
No - ThanQ
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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