Solved

How to add SLEEP  to my runner.bat script??

Posted on 2016-10-14
4
41 Views
Last Modified: 2016-10-14
How to add SLEEP  to my runner.bat script??here my script:
autorunner-script.txt
0
Comment
Question by:john lambert
  • 2
  • 2
4 Comments
 
LVL 68

Expert Comment

by:Qlemo
ID: 41843193
Replace
:SLEEPFN
PING -n 1 -w 5000 localhost > NUL
GOTO :EOF

Open in new window

with
:SLEEPFN
PING -n 6 localhost > NUL
GOTO :EOF

Open in new window

or
:SLEEPFN
PING -n 1 -w 5000 10.11.12.13 > NUL
GOTO :EOF

Open in new window

where 10.11.12.13 should not be reachable in your LAN (using a non-routable, private address instead of an arbitrary public one has the pro the packet will not leave your LAN).
1
 

Author Comment

by:john lambert
ID: 41843215
i receive this error:

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

Open in new window

0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 41843228
The change cannot cause that. Your script did have the same issue before.
The call SLEEPFN needs to be call :SLEEPFN .
1
 

Author Closing Comment

by:john lambert
ID: 41843236
Problem solved,thank you!!!!!!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A short film showing how OnPage and Connectwise integration works.

919 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

20 Experts available now in Live!

Get 1:1 Help Now