Solved

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

Posted on 2016-10-14
4
66 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 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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