Help Needed!! Problem in running an exe file
-
I am new to mobile development. I want to start an exe in the '\Program Files' folder of my mobile device(I m using a Symbol device) from my C# application. Can anyone tell me what command to use in the code.. I see that to start .wav files there is 'Symbol.Audio.Controller' available. Is there any such thing for exe files.
-
I am new to mobile development. I want to start an exe in the '\Program Files' folder of my mobile device(I m using a Symbol device) from my C# application. Can anyone tell me what command to use in the code.. I see that to start .wav files there is 'Symbol.Audio.Controller' available. Is there any such thing for exe files.
Hi, May be you can have a look at the Process and PrcessStartInfo class..I think you first create a ProcessStartInfo class, passing the constructor, the name of your exe to be executed with its full path as first parameter, and the arguments, if any, for the exe as second parameter. Then, create the instance of Process class, and call the Start() method, passing the instance of ProcessStartInfo as parameter. Hope it helps.
Ashvin Gunga
-
I am new to mobile development. I want to start an exe in the '\Program Files' folder of my mobile device(I m using a Symbol device) from my C# application. Can anyone tell me what command to use in the code.. I see that to start .wav files there is 'Symbol.Audio.Controller' available. Is there any such thing for exe files.
You can use the CreateProcess api to start an exe. There are many examples of how to do this on the web.