@echo off
for /f %%i in (‘wmic computersystem get name^|findstr /i /v “name”‘) do set name=%%iecho 计算计算机名称为%%i > %%i.txt
for /f “delims=: tokens=2″ %%j in (‘ipconfig^|findstr /i “IP Address”‘) do echo 计算机ip为%%j >> %name%.txt
echo 任务处理完毕任意键显示
pausestart %name%.txt