汶海洳

批处理获得本机的IP和MAC地址然后进行绑定
@echo off for /f "tokens=1* delims=:" %%i in ('...
扫描右侧二维码阅读全文
18
2007/08

批处理获得本机的IP和MAC地址然后进行绑定

@echo off
for /f "tokens=1* delims=:" %%i in ('ipconfig /all^|find /i "Physical Address"') do set mac=%%j
for /f "tokens=1* delims=:" %%i in ('ipconfig /all^|find /i "IP Address"') do set ip=%%j
arp -s %ip:~1% %Mac:~1%
Last modification:March 4th, 2019 at 02:45 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment