本文介绍了使用vb.net的IP地址更改器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何使用vb.net更改我的本地IP地址
how can i change my local ip address using vb.net
推荐答案
System.Diagonistic.Process.Start("netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1")
'Local Area Connection is the name of the connection substitute this with the correct one.
'To set to DHCP
System.Diagonistic.Process.Start("netsh interface ip set address "Local Area Connection" dhcp")
设置为DHCP
To set to DHCP
这篇关于使用vb.net的IP地址更改器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!