Experts Exchange connects you with the people and services you need so you can get back to work.
set ServerList=192.168.1.1 192.168.1.2 192.168.1.3
if "%~1"=="" (
for %%a in (%ServerList%) do (
start "" "%~f0" %%a
mode con cols=40 lines=25
title Ping %IP%
ping.exe -4 -n 1 %IP% | find /i "TTL" >NUL
if errorlevel 1 (
if not %Lost%==1 (
echo - Down: %Date% %Time: =0%
>>"%LogFile%" echo - %Date% %Time%
) else (
if not %Lost%==0 (
echo + Up: %Date% %Time: =0%
>>"%LogFile%" echo + %Date% %Time%
ping.exe -4 -n 2 localhost >nul
Open in new window
This course will introduce you to C++ 11 and teach you about syntax fundamentals.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.