Create file change_bat_brat.bat with content:
@echo off
echo.......................................................
color 2
ipconfig | find "IPv4 Address"
echo ......................................................
set /p num1=Enter a number: 1 - First 2 - Second
echo
if %num1%==1 goto :First
if %num1%==2 goto :Second
:First
echo Choice First
netsh interface ip set address name="Local Area Connection" static 192.168.168.111 255.255.255.0 192.168.168.1 1
netsh interface ip set dns "Local Area Connection" static 1.1.0.1
exit
:Second
echo Choice Second
netsh interface ip set address name="Local Area Connection" static 192.168.10.111 255.255.255.0 192.168.10.1 1
netsh interface ip set dns "Local Area Connection" static 192.168.10.1
exit
Няма коментари :
Публикуване на коментар