Option Explicit
Dim oShell, retCode
Set oShell = WScript.CreateObject("WScript.Shell")
WScript.Arguments(0)
WScript.Arguments(1)
WScript.Arguments(2)
retCode = oShell.Popup("Certain devices did not respond." & vbNewLine & "Open Logfile?", 10, "PINGME: Packets lost", 4 + 32)
Select Case retCode
case 6
CreateObject("WScript.Shell").Run "testpingme.txt"
case 7, -1
WScript.quit(1)
End Select