arg...i just tried it myself and couldnt validate the false condition. try this snippet instead, it worked for me. if strReturn = 1 then msgbox "box not up" end if At 02:40 PM 9/10/2002, you wrote: >Hi Jonathan, > >This almost works. Like, if the name can't be resolved, I'll get a false >return, but if the name is resolved but the response times out, I'll get a >true returned where I'm looking for a false. I'll probably just suck it up >and pipe the output to a file. This is only so that I can have my home >server ping my website while I'm at work and e-mail me if there's a problem. > >Thanks, > >Ray at work > > > -----Original Message----- > > From: Jonathan Chan [mailto:jchan@xxxxxxxxxxxxx] > > > > > > > > At 08:06 AM 9/10/2002, you wrote: > > >I do know VB Script. I just didn't know of any way to ping > > an IP address or > > >get a shell response back to my script. Like "strReturn = > > >objShell.Run("cmd.exe /c ping -n 1 domain.com") but it > > doesn't really work > > >that way... The only other thing I could think to do is > > pipe the ping > > >results to a text file and read it with the file scripting > > object then. > > >Doesn't matter really. Thanks. > > > > > >Ray at work > > > > > > > > try this: > > > > Dim shell > > Set shell = CreateObject("WScript.Shell") > > > > strReturn = Shell.Run("ping jchan", 1, true) > > 'msgbox strReturn > > > > if strReturn = false then > > do whatnot > > endif > > > > > > ================================== To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm