Invoke schedule task using .NET program
-
Hi All, How to run the schedule task from .NET application? Thanks in advance.
-
Hi All, How to run the schedule task from .NET application? Thanks in advance.
You're going to have to be a bit more specific than that. Since we're not sitting right next to you, we can't tell what your eyes were looking at and what your finger was pointing at when you said "How do I run that?" Are you talking about Windows Task Scheduler? Some task in an application? Some task setup on a remote server?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Hi All, How to run the schedule task from .NET application? Thanks in advance.
Take a look at the Task Scheduler API: http://msdn.microsoft.com/en-us/library/aa383614.aspx
-
You're going to have to be a bit more specific than that. Since we're not sitting right next to you, we can't tell what your eyes were looking at and what your finger was pointing at when you said "How do I run that?" Are you talking about Windows Task Scheduler? Some task in an application? Some task setup on a remote server?
A guide to posting questions on CodeProject[^]
Dave KreskowiakHi Dave, I have an exe file which is placed in scheduler Tasks(Control Panel--->Scheduled Tasks). I need to have a dotnet program which should run this scheduler automatically from my program. The above scheduled task is installed on my machine.
-
Hi Dave, I have an exe file which is placed in scheduler Tasks(Control Panel--->Scheduled Tasks). I need to have a dotnet program which should run this scheduler automatically from my program. The above scheduled task is installed on my machine.
There's a bit of a problem. There are TWO Task Schedular APIs. I can't remember the exact deatils, but tasks created in one API cannot be seen in the other. So, if you app uses one API and you can't see the task you want, you'll have to rewrite against the other API.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak