Hi I dunno if you have resolved this request but these are the changes I have made to your script. It will sort your list into 3 files - Online, Offline and UnknownHost. It works really well. The script: ***************************************************************** ::Ping Test Multiple Computers for /f "tokens=*" %%I in (IPList.txt) do call :pinger %%I goto :eof :pinger ping -n 1 %1% |find "Reply from" if not errorlevel 1 echo %1>> Online.txt ping -n 1 %1% |find "Request timed out" if not errorlevel 1 echo %1>> offline.txt ping -n 1 %1% |find "could not find host" if not errorlevel 1 echo %1>> Unknownhost.txt ::DONE ***************************************************************** Regards