[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?