So this week I needed a VBS script that would ping.  The reason I needed this was to wake a wireless connection up before the script did the rest of its work.  A few pings will do this.  This script will ping 8.8.8.8 (which is Google) and it will ping 8 times, which was more than enough for what I needed.
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WScript.sleep 10000
WshShell.Run “C:windowssystem32ping.exe 8.8.8.8 -n 8 -w 500”

By Duncan

Leave a Reply