I can connect when I go into command prompt manually and type:
rasdial one username password
This will work. It will dial and connect.
Now when I try doing this programmatically it will not work. It doesn't seem to be passing the arguments I've specified:
vb.net Code:
Public Shared Sub Dial() Dim p As New Process() p.StartInfo.CreateNoWindow = True p.StartInfo.UseShellExecute = False p.StartInfo.FileName = "cmd" 'command prompt launches, no arguments were passed though. p.StartInfo.Arguments = "rasdial one username password" p.Start() End Sub




Reply With Quote