借鑑了網上的一些案例,感謝百度貼吧的網友。
for /f tokens^=1^,2^ delims^=^,^" %%i in ('wmic nicconfig get IPAddress^,MACAddress^|find "."^|cscript -nologo -e:jscript "%tmp%\j.j"^| findstr "00:80:A3"') do set ip=%%~i
echo 網卡IP地址%ip%
借鑑了網上的一些案例,感謝百度貼吧的網友。
for /f tokens^=1^,2^ delims^=^,^" %%i in ('wmic nicconfig get IPAddress^,MACAddress^|find "."^|cscript -nologo -e:jscript "%tmp%\j.j"^| findstr "00:80:A3"') do set ip=%%~i
echo 網卡IP地址%ip%
setlocal enabledelayedexpansionSET /p filename=請輸入文件名:SET num=0for /f "toke