Running executables from a c# programme

  • Thread starter Thread starter Mark Bath
  • Start date Start date
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.
 
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.
 
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.
 
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.
 
Back
Top