Config IP for using laptop at many places

Create new file config-ip.bat

REM @author: huyphungvan
REM @date: 8:48 PM 8/27/2009
@echo off
set /P loc=”Config IP Address For Home Or Offcie [H/O]? ”
IF “%loc%”==”H” GOTO HOME
IF “%loc%”==”O” GOTO OFFICE
ECHO H or O, please.
PAUSE
EXIT

:HOME
netsh interface ip set address local static 192.168.1.114 255.255.255.0 192.168.1.1 1
REM netsh int ip add dns “Local Area Connection” 208.67.222.222 index=2
GOTO END

:OFFICE
netsh interface ip set address local static 192.168.0.114 255.255.255.0 192.168.0.253 1
REM netsh int ip add dns “Local Area Connection” 208.67.222.222 index=2
GOTO END

:END
pause

Copy to Start up folder (C:\Documents and Settings\All Users\Start Menu\Programs\Startup)