Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Changing my computer ip adress
[b][red]This message was edited by Abou Lamba at 2005-7-1 4:47:39[/red][/b][hr]
[b][red]This message was edited by Abou Lamba at 2005-7-1 4:4:27[/red][/b][hr]
I have to change my computer IP adress frequently, I am trying to build a VB.net application to change it programmaticaly without accessing the network setting (I am using windows server 2003), does anyone have a code that can do this operation?
actually I want to use the netsh command like :
netsh interface ip set address "Local Area Connection" static ipadress subnetmask.
This is the code:
Public Sub ChangeIp(ByVal ipad, ByVal subad)
Dim z As String = "netsh interface ip set address "Local Area Connection" static" +ipad +subad
x = Shell(z, vbNormalFocus)
MsgBox("batch file executed")
The problem is I cant put a contation (") inside other 2 cotations basicly the " local are connection" inside the netsh operation is the problem anyone can help?