|
||
---|---|---|
.. | ||
log | ||
README.md | ||
ping_logger.bat |
README.md
Ping Logger
Replace the variables check_host
& check_hostname
from the ping_logger.bat
like:
set check_host=8.8.8.8
set check_hostname=google_dns
You can also alter the path of the log file or name. Normally logs will be written in the .\log
folder.
set filename=.\log\%check_hostname%.log
One better solution if you have more hosts. Replace
set check_host=%1
set check_hostname=%2
then you can start the bat file via start .\ping_logger.bat 8.8.8.8 google_dns
. This will open a new cmd window pinging the given host info and create the logfile for it.