Hi guys hope you are well and can help.
I currently run this script by determining if a host is up by pinging its hostname.
What i would like to do though is modify the below script to instead pinging by hostname, ping by its ip address.
Any help greatly appreciated.
for /f %%c in (computers.txt) do (
call :GETINFO %%c
echo %%c: !Availability!>>availability.txt
if [%1]== goto :eof
ping %1 -n 2 -w 100 >nul 2>&1
If %errorlevel%==1 goto DOWN
echo %1: Up
echo %1: Down