set IP=192.168.1.103
:top
echo %date% %time% >> D:\%IP%.txt
ping -n 1 192.168.1.103| findstr "TTL">> D:\%IP%.txt
GOTO top
循环ping 某个IP并将结果写入文件 bat命令
最新推荐文章于 2024-07-06 10:06:47 发布
set IP=192.168.1.103
:top
echo %date% %time% >> D:\%IP%.txt
ping -n 1 192.168.1.103| findstr "TTL">> D:\%IP%.txt
GOTO top