Set oWshShell = WScript.CreateObject("WScript.Shell") strAnswer = InputBox("Please enter the System's Name:", _ "Pinger") start "strAnswer" "ping.exe -t" strAnswer If strAnswer = "" Then Wscript.Quit Else oWshShell.Run(sCommand) End If