Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function ping (strComputer)
ping = false
set objShell = WScript.CreateObject("WScript.Shell")
set objExec = objShell.Exec("%comspec% /c ping.exe " & strComputer & " -n 1 -w 100")
do until objExec.Stdout.AtEndOfStream
strLine = objExec.StdOut.ReadLine
if (inStr(strLine, "Reply")) then
ping = true
exit function
end if
loop
end function
'Usage
if (ping("4.2.2.2")) then
'Im connected!
else
'Something's wrong
end if