批量测试DNS解析
FOR /F "tokens=1,2 delims=\=" %%I IN (ServerBindings.txt) DO (
ping %%I -n 1 -w 1 | find "正在 Ping %%I " >> Ajiexi.txt
ping %%I -n 1 -w 1 | find "正在 Ping cusshop.ebdoor.com " && echo %%I >> biemingyum.txt
ping %%I -n 1 -w 1 | find "正在 Ping cusshop.ebdoor.com " >> biemingjiexi.txt
)
原文:https://www.cnblogs.com/sfqas/p/12180951.html