I found this code which pings a machine:
ipVar = "ping 192.168.3.107"
Set objShell = CreateObject("WScript.Shell")
objShell.run ipVar
But how do I deal with what it returns? In other words if a computer has crashed and is not able to be pinged, then I need to send a message to another machine.
Thanks
ipVar = "ping 192.168.3.107"
Set objShell = CreateObject("WScript.Shell")
objShell.run ipVar
But how do I deal with what it returns? In other words if a computer has crashed and is not able to be pinged, then I need to send a message to another machine.
Thanks