?
Solved

replacement for 'sleep' in batch file for windows server 2008

Posted on 2009-12-23
5
Medium Priority
?
2,412 Views
Last Modified: 2012-05-08
sleep doesnt work

wait doesnt work
0
Comment
Question by:rgb192
  • 2
  • 2
5 Comments
 
LVL 26

Expert Comment

by:MidnightOne
ID: 26113890
try adding PING 127.0.0.1 -n 11 >NUL to your batch script.

This will effectively cause a script to pause for 10 seconds.

If you need different timing, just change the number after -n to how many seconds + 1.
0
 

Author Comment

by:rgb192
ID: 26113954
no errors... now script doesnt run the ping command
0
 
LVL 33

Expert Comment

by:NJComputerNetworks
ID: 26114205
http://malektips.com/dos0017.html

The > Nul will hide the output...  you can remove this if you want to see the ping response...

what do you mean the script doesn't run the ping command?  

0
 
LVL 33

Accepted Solution

by:
NJComputerNetworks earned 2000 total points
ID: 26114216
0
 

Author Closing Comment

by:rgb192
ID: 31669499
thanks
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
Suggested Courses

862 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