Friday, October 24, 2014

How To Change Your Multi-Location IP Using Batch File

This file only work at Windows 7 And Windows 8

Please Copy the bellow command in notepad and save this file as a .bat file like (IP Changr.bat) and Change The IP series as your location wise and save.

....
Copy This  Bold Maintion File..........................

"
@echo off

::: Note ::::
echo Please make sure you are starting this batch script as an Administrator.                           

:START


Echo Select the no
ECHO 1 Conclave
Echo 2 Swabhumi
Echo 3 CCSL
Echo 4 Vishwakarma
Echo 5 CCNT
Echo 6 Ecohub
Echo 7 Upohar
Echo 8 Siliguri
Echo 9 raipur
Echo 0 Quit


set /P c=Do you want to switch to connection ? Plz Type Your Location Code and then Press Enter.

:::: Choice ::::

if /I "%c%" EQU "1" goto :ConnectionOne
if /I "%c%" EQU "2" goto :ConnectionTwo
if /I "%c%" EQU "3" goto :ConnectionThree
if /I "%c%" EQU "4" goto :ConnectionFour
if /I "%c%" EQU "5" goto :ConnectionFive
if /I "%c%" EQU "6" goto :ConnectionSix
if /I "%c%" EQU "7" goto :ConnectionSeven
if /I "%c%" EQU "8" goto :ConnectionEight
if /I "%c%" EQU "9" goto :ConnectionNine
if /I "%c%" EQU "0" goto :ConnectionZero

goto :Exit

:::: Variables ::::

:ConnectionOne
set varip=192.168.1.100
set varsm=255.255.255.0
set vargw=
192.168.1.3
set vardns1=
192.168.1.9
set vardns2=
192.168.1.10
goto :Start

:ConnectionTwo
set varip=
192.168.2.216
set varsm=255.255.255.0
set vargw=
192.168.2.3
set vardns1=
192.168.2.9
set vardns2=
192.168.2.10
goto:Start

:ConnectionThree
set varip=
192.168.3.216
set varsm=255.255.255.0
set vargw=
192.168.3.3
set vardns1=
192.168.3.9
set vardns2=
192.168.3.10
goto :Start

:ConnectionFour
set varip=
192.168.4.216
set varsm=255.255.255.0
set vargw=
192.168.4.3
set vardns1=
192.168.4.9
set vardns2=
192.168.4.10
goto:Start


:ConnectionFive
set varip=
192.168.5.216
set varsm=255.255.255.0
set vargw=
192.168.5.3
set vardns1=
192.168.5.9
set vardns2=
192.168.5.10
goto :Start

:ConnectionSix
set varip=
192.168.6.216
set varsm=255.255.255.0
set vargw=
192.168.6.3
set vardns1=
192.168.6.9
set vardns2=
192.168.6.10
goto:Start


:ConnectionSeven
set varip=
192.168.7.216
set varsm=255.255.255.0
set vargw=
192.168.7.3
set vardns1=
192.168.7.9
set vardns2=
192.168.7.10
goto :Start

:ConnectionEight
set varip=
192.168.8.216
set varsm=255.255.255.0
set vargw=
192.168.8.3
set vardns1=
192.168.8.9
set vardns2=
192.168.8.10
goto:Start


:ConnectionNine
set varip=
192.168.9.216
set varsm=255.255.255.0
set vargw=
192.168.9.3
set vardns1=
192.168.9.9
set vardns2=
192.168.9.10
goto :Start

:ConnectionZero
exit

goto:Start

:::: Program ::::

:Start
echo.
echo Setting IP Address [%varip%]
echo Setting Subnet Mask [%varsm%
echo Setting Gateway [%vargw%]
netsh interface ip set address name="Local Area Connection" static %varip% %varsm% %vargw%

echo Setting Primary DNS [%vardns1%]
echo Setting Secondary DNS [%vardns2%]
netsh interface ip set dns name="Local Area Connection" static %vardns1%
netsh interface ip add dns name="Local Area Connection" %vardns2% index=2

: to
ECHO This fanciness is brought to you by Kamal Roy IT-DEPT PH-9830132899!

:Exit
pause
exit


pause
  "



And then Run This file as administrator mode and then you choose your location code and then press Enter


Now Your Command Is Working Properly OK

No comments:

Windows Server 2008 R2 0x80072F8F Windows Activation Error.

  The Windows activation error code 0x80072F8F may occurred while trying to activate Windows 7 or Windows Vista. As Microsoft says the error...