編寫內容保存爲bathtml
1
2
3
4
5
6
7
8
9
|
@echo off &setlocal enabledelayedexpansion
Rem '/*========獲取本機的IP地址(局域網)=========*/
echo "please wait"
for /f "tokens=2 delims=:" %%b in ('ipconfig^|find /i "ip"') do set fsip=%%b
echo %fsip%
set CT=%computername%
echo %CT%
pause
|