Скрипт для быстрой смены настроек TCP
@echo off
:MENU
cls
echo —————-
echo Выберите канал подключения к Internet:
echo 1. 3G
echo 2. ADSL
echo 3. Skylink
echo 4. Exit
echo —————-
set /P choice=$
if %choice% equ 1 goto C1
if %choice% equ 2 goto C2
if %choice% equ 3 goto C3
if %choice% equ 4 goto EXIT
echo Invalid choice. & pause & goto MENU
:C1
cls
runas /user:Administrator «netsh -c interface ip set address static «lan» 192.168.0.74 255.255.255.0 192.168.0.1 1
goto :MENU
:C2
cls
runas /user:Administrator «netsh -c interface ip set address static «lan» 192.168.0.74 255.255.255.0 192.168.0.111 1
goto :MENU
:C3
cls
runas /user:Administrator «netsh -c interface ip set address static «lan» 192.168.0.74 255.255.255.0 192.168.0.211 1
:EXIT
exit
|