Launching a .exe file from other

F

Fred Pizarro

Hi everybody. I have a CF app running in iPAQ 2210. I need launch a .exe
file from other. In then full version from the .NET Framework exists the
process class but it is missing in CF.

Somebody know how can I do this ?

Thanks
 
J

Jon Skeet [C# MVP]

Fred Pizarro said:
Hi everybody. I have a CF app running in iPAQ 2210. I need launch a .exe
file from other. In then full version from the .NET Framework exists the
process class but it is missing in CF.

Somebody know how can I do this ?

Use OpenNETCF.Diagnostics.Process.Start.

See http://www.opennetcf.org for details.
 
F

Fred Pizarro

Hi, Jon thanks for your help .. I have a problem, when I call this code the
system launch an TypeLoadException .. here is my code

....
using OpenNETCF.Diagnostics;

.....
private void CheckNewApp()

{

ProcessStartInfo procinfo = new ProcessStartInfo("MyAppChecker.exe");

procinfo.UseShellExecute = true;


Process MyProcess = Process.Start(procinfo);


MyProcess.Start();

}
 
J

Jon Skeet [C# MVP]

Fred Pizarro said:
Hi, Jon thanks for your help .. I have a problem, when I call this code the
system launch an TypeLoadException .. here is my code

...
using OpenNETCF.Diagnostics;

....
private void CheckNewApp()

{

ProcessStartInfo procinfo = new ProcessStartInfo("MyAppChecker.exe");
procinfo.UseShellExecute = true;
Process MyProcess = Process.Start(procinfo);
MyProcess.Start();

}

How have you got OpenNETCF on the device? My own experience is that the
best way is just to make sure that OpenNETCF.dll is in the same
directory as your app.

I'm not sure which directory the above is going to try to run
MyAppChecker from though, by the way.
 

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

Top