:start
CLS
COLOR 2f
:: 使用COLOR命令對控制臺輸出顏色進行更改
mode con cols=56 lines=20
:: MODE語句為設定窗體的寬和高
:sc_main
echo -------------------------------------------
echo.&echo.
echo 0.192.168.0.99 & echo.
echo 1.192.168.1.99 & echo.
echo q.退出 & echo.&echo.&echo.&echo.&echo.&echo.
set "select="
set/p select= 輸入數(shù)字,按回車繼續(xù) :
if "%select%"=="0" (goto sc_ip0)
if "%select%"=="1" (goto sc_ip1)
if "%select%"=="Q" (goto sc_exit)
:sc_exit
exit
goto :eof
:sc_ip0
cls
echo 正在設置中,請稍候
Netsh interface IP Set Address "本地連接" Static 192.168.0.99 255.255.255.0 192.168.0.1 1
Netsh interface IP set dns "本地連接" static 192.168.0.1 primary
echo 設置成功 192.168.0.99
PAUSE >nul
Goto sc_main
:sc_ip1
cls
echo 正在設置中,請稍候
Netsh interface IP Set Address "本地連接" Static 192.168.1.99 255.255.255.0 192.168.1.1 1
Netsh interface IP set dns "本地連接" static 192.168.1.1 primary
echo 設置成功 192.168.1.99
PAUSE >nul
Goto sc_main
新聞熱點
疑難解答