IP aus Ping Abfrage auslesen
hallo, ich suche eigentlich nur einen weg per batch datei aus ping <domain> die ip auszulesen, damit ich die ip über ein anderes interface routen kann.
also quasi bisher mach ich zb. ping heise.de, ip notieren und route add %ip% mask........
danke schonmal
also quasi bisher mach ich zb. ping heise.de, ip notieren und route add %ip% mask........
danke schonmal
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 56416
Url: https://administrator.de/forum/ip-aus-ping-abfrage-auslesen-56416.html
Ausgedruckt am: 20.02.2025 um 01:02 Uhr
3 Kommentare
Neuester Kommentar
Versuch mal dies vbs skript.
Set WSHShell = WScript.CreateObject("WScript.Shell")
set MyFiles = CreateObject("Scripting.FileSystemObject")
Set oExec = WshShell.Exec("Ping srv1 -n 1 " )
Do While Not oExec.StdOut.AtEndOfStream
input = input & oExec.StdOut.Read(1)
Loop
PingTest = "! Ping an SRV1 (1. DC) NICHT Erfolgreich"
If InStr(input, "TTL=" ) <> 0 Then
PingTest"Ping an SRV1 (1. DC) Erfolgreich"
End If
msgBox pingTest
set MyFiles = CreateObject("Scripting.FileSystemObject")
Set oExec = WshShell.Exec("Ping srv1 -n 1 " )
Do While Not oExec.StdOut.AtEndOfStream
input = input & oExec.StdOut.Read(1)
Loop
PingTest = "! Ping an SRV1 (1. DC) NICHT Erfolgreich"
If InStr(input, "TTL=" ) <> 0 Then
PingTest"Ping an SRV1 (1. DC) Erfolgreich"
End If
msgBox pingTest