@echo off
title ç½ç»åæ°
call :select "ip address" "ip"
call :select "subnet mask" "mask"
call :select "Physical Address" "mac"
call :select "Default Gateway" "gateway"
call :select "DNS Servers" "dns"
call :select "Description" "netcard"
echo å®é
å°å:%mac%
echo I P å°å:%ip%
echo åç½ æ©ç :%mask%
echo é»è®¤ ç½å
³:%gateway%
echo DNSæå¡å¨:%dns%
echo ç½å¡ ä¿¡æ¯:%netcard%
pause>nul
goto :eof
:select
for /f "tokens=2 delims=:" %%i in ('ipconfig /all ^| findstr /i /c:%1') do if not "!%~2!" == "" set "%~2=%%i"
goto :eof
_______________________ä¸é¢æ¯æ¹å¤ç代ç ______________________________
å¨DOSä¸æ¥çç½ç»è¿æ¥ä¿¡æ¯ï¼ç´æ¥è¾å
¥ ipconfig
éè¦æµè¯ç½ç»è¿æ¥è´¨é,è¾å
¥ ping éè¦è¿æ¥çå°å
温馨提示:内容为网友见解,仅供参考