mc-doubleyou
Goto Top

Ping Ergebnis als Variable

Hallo zusammen,

eigentlich hab ich es fast geschafft, aber nur fast -.-

@echo off

set /p ip=Geben sie nun die IP Adresse ein: 
echo.
echo Ping'n'Write  

echo --- Neuer Start --- >> %ip%_%date%_LOG.txt
echo.

:start
for /f %%i in ('ping -n 1 %ip% ^| find "Antwort"') Do @set test=%%i  
echo %date% - %time% - %test% >> %ip%_%date%_LOG.txt
echo. >> %ip%_%date%_LOG.txt
goto start

Ergebnis IST:

DATUM - UHRZEIT - Antwort

Ergebnis SOLL:

DATUM - UHRZEIT - Antwort von 74.125.232.248: Bytes=32 Zeit=11ms TTL=55

Danke!

lg mc-dy

Content-Key: 182791

Url: https://administrator.de/contentid/182791

Printed on: April 19, 2024 at 10:04 o'clock

Member: Skyemugen
Skyemugen Mar 29, 2012 at 11:34:25 (UTC)
Goto Top
Aloha,

...

"delims="

greetz André
Member: mc-doubleyou
mc-doubleyou Mar 29, 2012 at 11:46:46 (UTC)
Goto Top
Man ist mir das peinlich -.-


Danke!

lg mc-dy