Run Programs

  • Thread starter Thread starter Bill English
  • Start date Start date
B

Bill English

How do I run a run an external program from mine. What I
want to do is build a quick launch program in the system
tray used to quickly launch my apps.
 
You can use the System.Diagnostics.Process class to start external
processes.

The easiest way is to just use
System.Diagnostics.Process.Start("IExplore.exe") to start IE for example,
but you can do more advanced stuff as well...

Good luck,
 
* "Bill English said:
How do I run a run an external program from mine. What I
want to do is build a quick launch program in the system
tray used to quickly launch my apps.

Please do not multipost.

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