First open notepad, and copy & paste the following dos code , & then save this notepad with “ .bat” extension.
Code start =>
@echo off
echo Connecting to BSNL…
IPCONFIG |FIND “IP” > %temp%TEMPIP.txt
FOR /F “tokens=2 delims=:” %%a in (%temp%TEMPIP.txt) do set IP=%%a
del %temp%TEMPIP.txt
set IP=%IP:~1%
echo %IP%
pause
netsh int ip set address “local area connection” static %IP% 255.255.255.0 192.168.1.1 1
netsh int ip set dns “local area connection” static addr=218.248.240.208
netsh int ip add dns “local area connection” 218.248.255.145
<= Code end.
[*
Please note : The red color numbers are IP address of BSNL
Broadband, These numbers are provided by BSNL Company. This number will
different for Different ISP. ]
//
//