Set oWshShell = WScript.CreateObject("WScript.Shell") strAnswer = InputBox("Please enter the System's Name:", _ "Pinger") If strAnswer = "" Then Wscript.Quit Else oWshShell.Run("%comspec% /K title strAnswer|ping -t " & strAnswer) End If