
CODE: [Copy to clipboard]@echo off
set cn=%computername%
for /f "delims=: tokens=1,*" %%a in ('ipconfig^|find /i "IP address"') do echo ip---%%b &&call :out %cn% %%b
start file.txt
exit
:out
>>file.txt set/p name=%1 <nul
>>file.txt set/p ip=%2<nul
echo.>>file.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |