Running executables from a c# programme

M

Mark Bath

Hey there.

OK, yet another compact framework virgin here.

I need help understanding how to run executables from a C# program on a
Pocket PC.

I'm creating a number of different applications, and essentially I want a
menu program that will always run in the background, and will kick-off other
applications (by calling their executable) when either the user presses on a
button, or when the time of day reaches certain hours.

Any help (especially examples) would be appreciated.

-Mark.
 
M

Mark Bath

Cheers for that.
The opennetcf.dll is just what was needed. Works a dream for running
executables.

I'm just digging into the CeRunAppAtEvent at the moment.

Thanks again for the help.

-M.
 
C

Chris Tacke, eMVP

I'd avoid CeRunAppAt Event actually. It's a deprecated method and I've had
some issues with it. CeSetUserNotification is the replacement and it too is
in the SDF.
 
M

Mark Bath

For running applications at set times of day I've used the
Notify.RunAppAtTime() routine from the OpenNetCF dll (part of the .
the code I've used is:
----- start code ---------
USING OPENNETCF.Win32.Notify;

// Run application at 08:00 in the morning
// Variable "TimeToUse" holds the time.

DateTime TimeToUse = Convert.ToDateTime("06:00:00");

Notify.RunAppAtTime(@"\Program Files\TempApp\TempApp", TimeToUse);
------ end code ----------

This appears to work fine, but it's early days with plenty more testing to
do. We'll see what creeps out of the woodwork. Again thanks for the help
and advice.

-M.
 

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