?
Solved

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

Posted on 2016-10-14
4
Medium Priority
?
69 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
[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
  • 2
  • 2
4 Comments
 
LVL 70

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 70

Accepted Solution

by:
Qlemo earned 2000 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

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

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 …
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

764 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