I posted this a few days ago, but I am still having some issues. Please help if possible. Here is my code
@echo off
rem This script pings all IPAdresses on an Xfinity Router.
::v1.2 - BTE - 01Mar19
::
for /L %%i in (1,1,254) DO ping -n 1 10.0.0.%%i | findstr "ms" && (echo 10.0.0.%%i)>>"pingable_ips.txt"
The above was a batch file that I tried to create to ping all IP addresses on my network, then write all pingable IPs to a text file. After some troubleshooting from others here, I got it to at least ping all IPs on the network. I am still having trouble with getting the batch file to create a text file with the pingable IPs.
This batch file runs all the way from 10.0.0.1
to 10.0.0.254
, but it stops after.
EDIT: Thank You, I got it to work!