VBS Script To Ping A Remote Machine Until The Command Window Is Closed

 

Here you will find a VBS script that will allow you to ping a remote machine continuously (Ping –t) until you close the command window. The script can be used to monitor the shutdown or reboot process for a server or workstation.

 

Ping Script:

 

strComputer = InputBox("Enter Machine Name")

Set objShell = CreateObject("Wscript.Shell")

 

strCommand = "%Comspec% /k Ping -t " & strComputer

objShell.Run strCommand

 

 

 

Published Sunday, June 22, 2008 1:04 PM by dhite
Filed under:

Comments

No Comments