Rasdial

oggmorg

Member
Joined
Jan 25, 2012
Messages
16
Programming Experience
1-3
my app dials to vpn using rasdial, it exicutes rasdial.exe with relevant params, this then launches a cmd window showing the progress. "connecting.." "verifying user/pass" "registering on remote computer" and so on. i would like to have this cmd window hidden, but create a progress form that shows these lines.. would someone know the best method for this?
 

Thanks! again.. im having trouble with this however. i cant seem to catch any output.. can you see what im doing wrong?

Dim compiler As New Process()
compiler.StartInfo.FileName = "cmd.exe"
compiler.StartInfo.Arguments = "/k ipconfig /all"
compiler.StartInfo.UseShellExecute = True
compiler.StartInfo.RedirectStandardOutput = True
compiler.Start()
Dim test As String = compiler.StandardOutput.ReadToEnd()
Label1.Text = test
compiler.WaitForExit()
 
Back
Top