Click here to Skip to main content
15,889,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I once again need some help.

Im using the .net Compact Framework and the programming language C# to develop for mobile devices that are running WinCE 6.0.

What I have tried:

What I want to accomplish is to programmatically execute exe from c# without extension. To do so, the app runs the following code :

ProcessStartInfo processStartInfo = new ProcessStartInfo();

C#
// FOR WINCE

     processStartInfo.FileName = @"\vortex\res.exe";
     processStartInfo.UseShellExecute = false;
     Process.Start(processStartInfo);



Now my problem is, that if i changed the res.exe to any extenstion(for example res.dat) in wince 5.0 it will call the file and run it,but in wince 6.0 it give me error like:

The System Cannot find the File Specified.
The parameter UseShellExecuten doesnt seem to show any effect in the wince 6.0.

I hope you get the idea.

Many thanks in advance.
Posted
Updated 23-Nov-16 1:36am
v2
Comments
Afzaal Ahmad Zeeshan 23-Nov-16 7:40am    
Cannot find the file specified. — I hope you get the idea. :-)

1 solution

I believe you need a fully qualified path (including the drive letter).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900