回复:各位急救啦!
@echo off
@color 0C
@echo.
@Echo ====================开始本机IP和MAC地址绑定====================
If Exist ipconfig.txt Del ipconfig.txt
ipconfig /all >ipconfig.txt
If Exist phyaddr.txt Del phyaddr.txt
find "Physical Address" ipconfig.txt >phyaddr.txt
For /f "skip=2 tokens=12" %%M In (phyaddr.txt) Do Set Mac=%%M
If Exist IPAddr.txt Del IPaddr.txt
find "IP Address" ipconfig.txt >IPAddr.txt
For /f "skip=2 tokens=15" %%I In (IPAddr.txt) Do Set IP=%%I
arp -s %IP% %Mac%
@echo.
@color 0A
@Echo 本机IP和MAC地址: %IP% %Mac%
@echo.
If Exist ipconfig.txt Del ipconfig.txt
If Exist phyaddr.txt Del phyaddr.txt
If Exist IPAddr.txt Del IPaddr.txt
@Echo ====================本机IP和MAC地址完成====================
把这个粘贴到记事本里面,之后另存为.bat格式的文件双击运行一下试试