CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: Scheduled Tasks

  1. #1
    Join Date
    Feb 2000
    Location
    USA
    Posts
    5

    Scheduled Tasks

    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

  2. #2
    Join Date
    Jul 2002
    Posts
    10
    check the IDXTaskManager Interface

  3. #3
    Join Date
    Feb 2000
    Location
    USA
    Posts
    5
    Where might I find this out? Is this a Class Library build into C#? Thanks for your help.

    cAptHiDDeN

  4. #4
    Join Date
    Feb 2000
    Location
    USA
    Posts
    5
    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
    Attached Files Attached Files

  5. #5
    Join Date
    Jun 2002
    Location
    Philadelphia, PA
    Posts
    85
    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/de...duler_3sbx.asp
    Last edited by CPCericola; July 30th, 2002 at 09:57 AM.

  6. #6
    Join Date
    Jun 2002
    Location
    Philadelphia, PA
    Posts
    85

    Web page with a .net wrapper

    I found this after a little searching. This guy has already written a wrapper for you.

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

  7. #7
    Join Date
    Feb 2000
    Location
    USA
    Posts
    5
    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
    Last edited by capthidden; July 30th, 2002 at 11:17 AM.

  8. #8
    Join Date
    Jun 2002
    Location
    Philadelphia, PA
    Posts
    85
    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
    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.

  9. #9
    Join Date
    Feb 2000
    Location
    USA
    Posts
    5
    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:

    [email protected]

    cAptHiDDeN

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured