@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