简体   繁体   中英

How do I programmatically change workstation's ip address?

There's probably some nice way of doing it (in Windows XP) in VBScript (or some other scripting language) with registry tweaks. Anyone know how?

well if you don't mind just doing a regular batch script then you can use the netsh tool

It's been a while but I believe the command is something like this:

netsh interface ipv4 set address name=”Local Area Connection” source=static address=<ip address> mask=<netmask> gateway=<router ip address>

As far as vbscript and such I have no idea but I'm sure it's possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM