Hallo
die Funktion Ping gibt mir kein @error zurück, obwohl das Netzwerkkabel entfernt ist.
$IPCon = "192.168.1.1"
$ping = Ping($IPCon, 400)
MsgBox($IPCon, ":" & $IPCon &":")
if $ping <= 0 OR @error Then
MsgBox(0, "", "false")
Else
MsgBox(0, "", "true")
EndIf
PS: über cmd kommt so wie es sein soll ein Fehler.