Here2Help
asked on
Run Program with Switches
Hey.
I'm trying to run my app with switches included but seems to error out. Any help?
Here's my code
I'm trying to run my app with switches included but seems to error out. Any help?
Here's my code
'Run App
Try
Dim Drive As String = System.IO.Path.GetPathRoot(Application.StartupPath)
Dim App As String = System.IO.Path.Combine(Drive, "\AppDir\App.exe /Switch1 /Switch2")
Process.Start(App)
Catch ex As Exception
MsgBox("App Failed.", MsgBoxStyle.Exclamation)
End Try
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
cheers.