Click to See Complete Forum and Search --> : Scheduled Tasks


capthidden
July 29th, 2002, 02:00 PM
Hi,

Does anyone know if it is possible to call the Scheduled Task interface from C#. Its located here Start -> All Programs -> System Tools -> Scheduled Tasks. Once you Add a Scheduled Task and you get the properties of it -- this is the interface I would like to call. Is there a class in C# that will handle this. I have seen Symantec using this in their Norton AntiVirus program. Any help would be greatly appreciated since I need to do this in my program. Thanks

cAptHiDDeN :D

franc2
July 30th, 2002, 02:27 AM
check the IDXTaskManager Interface

capthidden
July 30th, 2002, 07:30 AM
Where might I find this out? Is this a Class Library build into C#? Thanks for your help.

cAptHiDDeN :)

capthidden
July 30th, 2002, 07:37 AM
I have attached two files to show what I am trying to accomplish. The one titled Task Scheduler is what I am trying to call within C#. I am not sure if there is a class library that will call this or some dll file. The one titled Task Scheduler Wizard is another interface I would like to try to call as well. If anyone has any insight or might be of some help, I would appreciate it.
Thank you.

P.S. I had to zip this file up since there is more then one screenshot.

cAptHiDDeN

CPCericola
July 30th, 2002, 09:53 AM
Originally posted by capthidden
Where might I find this out? Is this a Class Library build into C#? Thanks for your help.

cAptHiDDeN :)

To my knowledge, there isn't a class library in the .NET framework for this. It seems however you can access the task scheduler through ITaskScheduler.

Here is a link to it on the MSDN library. If I get a chance I will try to put together an example for you.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/taskschd/ts_itaskscheduler_3sbx.asp

CPCericola
July 30th, 2002, 10:09 AM
I found this after a little searching. This guy has already written a wrapper for you.

http://www.domaindlx.com/e_morcillo/

capthidden
July 30th, 2002, 11:14 AM
Hi CPCericola,

Kewl. I downloaded his example and tried to compile it . It seem that 2 files are either missing or were not included in his packager. The following is what I get if I try to compile...

After install, I browsed to the Program File\Edanmos VB Page\TaskScheduler\TashScheduler directory and launched the TaskScheduler.vbproj file. I noticed that VB .NET was complaining about two files not being present those being Edanmo.TashScheduler.snk and fxcop.FXCop. I was wondering if there was something wrong with the way he packaged this or were these left out by mistake? Is there something that I am missing or that I left out? Even the program in the Test directory complains about these two files missing as well.

I have emailed him about this -- hopefully, I will hear something soon. Thanks for the help CPCericola. I really appreciate it.

cAptHiDDeN :cool:

CPCericola
July 30th, 2002, 11:20 AM
Originally posted by capthidden
I was wondering if there was something wrong with the way he packaged this or were these left out by mistake? Is there something that I am missing or that I left out? Even the program in the Test directory complains about these two files missing as well.

I have emailed him about this -- hopefully, I will hear something soon. Thanks for the help CPCericola. I really appreciate it.

cAptHiDDeN :cool:

I didn't try to example, but I notice the project was complaing about those two missing files. More than likely it was a packaging mistake. He's very active on Usenet from what I see so he should respond quickly.

capthidden
July 30th, 2002, 11:28 AM
If you got some time, I would be interested in looking at your example. I really do need this feature -- I have to have a built in scheduler in my program that I am working on for work...lol. If you got some time and you want to drop me a line and/or your example my email follows below:

odonnellj@edc.gsph.pitt.edu

cAptHiDDeN :)