All of that can be done with PowerShell and Test-Connection.

Thanks


Webster

From: James Rankin [mailto:kz2...@googlemail.com]
Subject: Re: Startup processes

I do love a bit of batch scripting :-)
Unfortunately I can only use JScript (!), VBScript or PowerShell in my console, 
but it could be adapted with a bit of time and effort. If nothing simpler turns 
up, it'll definitely be something like this I will use.



On 25 April 2013 14:23, Kennedy, Jim 
<kennedy...@elyriaschools.org<mailto:kennedy...@elyriaschools.org>> wrote:
" The other problem I've got is looping the routine enough to give it time for 
the network to connect"

:START
PING -n 1 192.168.1.1|find "Reply from " >NUL
IF NOT ERRORLEVEL 1 goto :SUCCESS
IF     ERRORLEVEL 1 goto :FAIL

:FAIL
ping 192.0.2.2 -n 1 -w 10000 > nul  (or some other non-existent address, will 
wait for 10 seconds)
goto :START

:SUCCESS
Run your process
:END

Might want to add a counter in there, so it exits after a certain number of 
tries. Set the whole thing as a startup scheduled task.

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Reply via email to