PDA

View Full Version : System.Diagnostics.Process alternative to launch an app


Paulie1212
26-03-2007, 03:11 PM
Hi,
I want to launch an app/file from within my C# program. The common way to do this is to use System.Diagnostics.Process class

e.g. System.Diagnostics.Process.Start(@"MyFile.txt");

This class does not seem to be available in CFv1.0. Is there an alternative way to run a file from within my code?

Dev Env: C#, VS2005, WM5.0 PPC and Compact Framework v1.0 (I have to stick with CFv1.0)

Thanks for any help and code given

Paulie1212
27-03-2007, 01:07 PM
Any takers?:) :) I'm still struggling to find a way to run another file from within my c# program.:( I can do in VB if it helps me. I don't think this should be difficult but I am coming up blank without being able to use System.Diagnostics.Process class (only available in CFv2.0)

swingheim
28-03-2007, 04:56 AM
This class was missing in the v1.1 CF Framework... and as such, there is no way to launch a thread.

You must upgrade to the v2.0 framework.

Paulie1212
28-03-2007, 10:31 AM
I need to find an alternative to using the System.Diagnostics.Process class. I have to support CFv1 devices with the install so cannot upgrade to CFv2

t0flus
28-03-2007, 02:09 PM
You can do it by P\Invoking the CreateProcess function.