Feb 26, 2009

Batch in Windows

Ok next step ....

if we want to switc between 2 IP configuration, we can make 2 batch file to make us easy

first make a batch file with this script :

netsh interface ip set address name="name of connection" static IP Netmask gateway

so we get for example like

netsh interface ip set address name="Local Network" static 192.168.0.10 255.255.255.0 192.168.0.1

then save in extention *.bat

next make script like this

netsh interface ip set address name="Local Network" dhcp

this script mean that we use DHCP configuration

se.. yaa...

just explore your self

other reference see on google.com

cayoooo...

0 comments:

Post a Comment

comment please ...