shrinath_m2, i had the same problem and used this...

batch file # 1
netsh interface ip set address name="Local Area Connection" static 192.168.1.3 255.255.255.0 192.168.1.1 1

batch file # 2...