CeRunAppAtTime doesn't wake up device

M

MDB

I have an application where I call CeRunAppAtTime everyday at 5:00 AM. My
problem is that this works on some of my devices intermittently. For some
reason, I have to tap the screen in order for the application to actually
execute the application I called in the CeRunAppAtTime. It seems that the
device is in suspense and the CeRunAppAtTime is not waking it up.

Anyone have any ideas?

TIA
 
M

MDB

Hi again, I tried using this with the below code however, it took user
interaction in order for the exe to be executed. Is there something I am
missing to make this automatically launch the exe at a specific time?

string path;
path =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
);

DateTime dtNextRunTime;
dtNextRunTime = DateTime.Now.AddMinutes(1);

OpenNETCF.Win32.Notify.UserNotification notify = new
OpenNETCF.Win32.Notify.UserNotification();
notify.Action = OpenNETCF.Win32.Notify.NotificationAction.Led;
OpenNETCF.Win32.Notify.Notify.SetUserNotification(path +
@"\FTPTask.exe",dtNextRunTime,notify);
 

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