Running an executable program

  • Thread starter Thread starter Guest
  • Start date Start date
There are a few of options open to you, although some of them require
that you do some P/Invoking.

Option #1: P/Invoke CreateProcess
Option #2: P/Invoke ShellExecute
Option #3: Take a look at the Smart Device Framework at OpenNETCF.org.
This provides managed wrappers for CreateProcess and ShellExecute so you
don't have to do the P/Invoking yourself.

HTH
Neil

--
Neil Cowburn, MVP
Co-founder, OpenNETCF.org
Technologist, Content Master Ltd
Microsoft .NET Compact Framework MVP

www.opennetcf.org | www.contentmaster.com
 
And if you pick the latter option you can use the new
OpenNETCF.Diagnostics.Process class - this is a direct subset of the
functionality of System.Diagnostics.Process class as used in the full
framework e.g.

Process.Start("yourapp.exe")

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org
 
Back
Top