复制代码
- @echo off
- @REM 获取其他机器mac
- set ips=192.168.1.1 192.168.1.100
- for %%A in (%ips%) do ping -n 1 %%A >nul 2>&1
- for /f "tokens=1-2" %%A in ('arp -a') do (
- for %%I in (%ips%) do (
- if %%I==%%A echo %%A %%B
- )
- )
- pause
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |