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")'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top