been watching some of these files arround the net and seems pretty interesting, so i wanted a code to play with.

Code: Select all
cls
@echo off
if "%1" == "" (
echo iplist.txt
) ELSE (
FOR /F "eol=; tokens=1" %%a in (%1) do ping %%a >> pingresult.txt
echo done
)