Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 85
  • Last Modified:

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

How to add SLEEP  to my runner.bat script??here my script:
autorunner-script.txt
0
john lambert
Asked:
john lambert
  • 2
  • 2
1 Solution
 
QlemoC++ DeveloperCommented:
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
 
john lambertAuthor Commented:
i receive this error:

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

Open in new window

0
 
QlemoC++ DeveloperCommented:
The change cannot cause that. Your script did have the same issue before.
The call SLEEPFN needs to be call :SLEEPFN .
1
 
john lambertAuthor Commented:
Problem solved,thank you!!!!!!
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now