Ping with Date Script

Hi

Sorry but last days I’m very Busy preparing MCSA 2012 Cert … so in these days I’ve found a simple script (MSDOS) that it’s pretty helpfull for networking troubleshooting Issues

This is a ping with the date and time “echoed” on it and stores the log on a directory

Enjoy!

REM —Begin Script —

@echo off
del pinglog.txt
for /f “tokens=*” %%A in (‘127.0.0.1 -n 1 ‘) do (echo %%A>>pinglog.txt && GOTO Ping)
:Ping
for /f “tokens=* skip=2” %%A in (‘ping dsglespbr-s1130.desigual.com -n 1 ‘) do (echo %date% %time% %%A>>pinglog.txt && GOTO Ping)

REM end —

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.