@echo off
set n=1
:start
cls
echo %n%次
arp -a |findstr /c:" 192.168.0.1"
set /a n=%n%+1
ping -n 2 127.1 >nul
goto start
运行后
%n%次
192.168.0.1 00-03-47-00 -
能不能显示成
%n%次 192.168.0.1 00-03-47
set n=1
:start
cls
echo %n%次
arp -a |findstr /c:" 192.168.0.1"
set /a n=%n%+1
ping -n 2 127.1 >nul
goto start
运行后
%n%次
192.168.0.1 00-03-47-00 -
能不能显示成
%n%次 192.168.0.1 00-03-47
