Here is the code I have so far. The .bat file is picking up the file I want with all my IP addresses (IPS.txt), however, I am wanting my ping results to be in a text file ping.txt. If at all possible I would only like to see the IPs that "failed to respond".
Thank you
Code:
@echo off
FOR /F "tokens=*" %%I in (C:\Users\VHAFARMcdouM\Ips.txt) do ping -n 1 %%a >nul && (echo %%a ok) || (echo %%a failed to respond)
pause
Thank you