请教关于批处理FOR命令的问题

2024-11-22 12:41:08
推荐回答(2个)
回答1:

for /f "delims=" %%i in ('ipconfig /all^|find /i "ip"') do echo %%i >>set.txt
少了句保存

回答2:

for /f "delims=" %%i in ('ipconfig /all^|find /i "ip"') do echo %%i