How to run one Application from another Application?

  • Thread starter Thread starter RH
  • Start date Start date
R

RH

Hi,

I have a windows application that has a button. When this button is clicked,
I want it to cause another windows application to run.
Any help on how to do this would be appreciated.

Thanks.
 
You can use either System.Diagnostic.Process.Start("C:\myapp.exe")

or Shell("c:\Myapp.exe")

-CJ
 
* "RH said:
I have a windows application that has a button. When this button is clicked,
I want it to cause another windows application to run.
Any help on how to do this would be appreciated.

Opening a file:

\\\
Imports System.Diagnostics

..
..
..
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = "C:\bla.html"
Process.Start(psi)
..
..
..
///

Starting an application:

If you want to start an application, you can simply call
'System.Diagnostics.Process.Start("C:\bla.exe")' or in VB.NET
'Shell("C:\bla.exe")'.
 
Back
Top