Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sleep command

Posted on 2004-04-22
10
Medium Priority
?
5,718 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

670 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