For /F "tokens=1 eol=" %%a in (computername.txt) do ping %%a -n 1 | find "could not find" || echo %%a>> oklist.txt