CoachBarker
Well-known member
- Joined
- Jul 26, 2007
- Messages
- 133
- Programming Experience
- 1-3
In my remote desk top app,right now I launch the VPN that is included with the app like this
what I would like to do is launch the executable using 2.0 coding. I tried
but this did not work. The .exe file is set to copy out when deployed and it works in the first version, what am I doing wrong in the second?
Suggestions
CoachBarker
VB.NET:
' declare a variable to access the Process class and instantiate the variable
Dim proc As New Process
' declare a variable to hold the path as a string
Dim path As String = "../../VPN/vpnsetup.exe"
' start the process
proc = Process.Start(path)
' wait for the process to finish before continuing on
proc.WaitForExit()
what I would like to do is launch the executable using 2.0 coding. I tried
VB.NET:
' declare a variable to access the Process class and instantiate the variable
Dim proc As New Process
' declare a variable to hold the path as a string
Dim path As String = Application.StartupPath("VPN/vpnsetup.exe")
' start the process
proc = Process.Start(path)
' wait for the process to finish before continuing on
proc.WaitForExit()
but this did not work. The .exe file is set to copy out when deployed and it works in the first version, what am I doing wrong in the second?
Suggestions
CoachBarker