Saturday, February 5, 2011

Change Your IP Address in few seconds

Sometimes people need to change their IP addresses frequently, just because these days they use a couple of IP addresses.
So you just need to copy the bellow text in a notepad and then save it in a ".bat" extension.
eg - IP change.bat

Programming - :
=====
ECHO OFF
Color 79
CLS
:MENU
ECHO.
ECHO ...............................................
ECHO PRESS 1 or 2 to select your task, or 3 to EXIT.
ECHO ...............................................
ECHO.
ECHO 1 - Intranet for AIR INDIA network
ECHO 2 - Internet for Web Surfing
ECHO 3 - EXIT
ECHO.
SET /P M=Type 1, 2, or 3, then press ENTER:
IF %M%==1 GOTO INTRANET
IF %M%==2 GOTO INTERNET
IF %M%==3 GOTO EOF
:INTRANET
ECHO     PLEASE WAIT........
netsh interface ip set address name="Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.1.2 1
GOTO EOF
:INTERNET
ECHO    PLEASE WAIT.........
netsh interface ip set address name="Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.11 1
GOTO EOF
============

Format - netsh interface ip set address name="Local Area Connection" static "IP Address" "subnet mask" "Default gateway" 1

After saving the file in .bat format
run the file











window will open as above
go for your selection and your work is done.

0 Responses to “Change Your IP Address in few seconds”

Post a Comment

All Rights Reserved Tech-next| | Blogger Template by Bloggermint
© TECH NEXT INDIA 2011. Powered by Blogger.