1: 2: 3: 4: 5: 6: 7: 8: 9:
for /F %%G in (computers.txt) do ( ping %%G | find /i "TTL" >NUL if errorlevel 1 ( echo ... no response ) else ( xcopy defrag.job \\%%G\admin$\tasks\ /C /H /R /Y schtasks /change /s %%G /RU "NT AUTHORITY\SYSTEM" /tn Defrag ) )