On Sun, 28 Dec 2003 16:17:23 -0500, "Paul R. Sadowski"
<(E-Mail Removed)> wrote:
>call sleep 10
>:sleep
>:: sleep for x number of seconds
>ping -n %1 127.0.0.1 > NUL 2>&1
>goto :EOF
>Problems:
>firewalls could screwup ping either by disallowing it or by not being
>configured for it and asking the user for what to do with it.
Pinging 127.0.0.1, actually any address starting with 127, will not
cause any IP packets to leave the computer, much less hit any
firewall. The 127 range contains only loopback addresses. Try
unplugging the network connection and then running the script.
Replies will still happen.
Also note that to be closer to accurate that the parameter should be
one larger. In other words to sleep for 10 seconds use the following:
ping -n 11 127.0.0.1 >NUL
It doesn't make that much difference, but it could.
Clay Calvert
(E-Mail Removed)
Replace "W" with "L"