CODE: [Copy to clipboard]@echo off for /f %%a in (ip.txt) do ( if not defined %%a (echo pinging %%a) set %%a=cn-dos ) pause