Solved

Programatically scheduling a job

Posted on 2004-10-26
330 Views
Last Modified: 2010-04-24
This is a continuation of this thread: http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21182637.html

I know I can schedule a job via the command prompt that's fine however, how do I programatically check if the job already exists?  I need to know for sure that the job doesn't exist before I create the job.

Any ideas?

Thanks in Advance,

Bill
0
Question by:billy21
    6 Comments
     
    LVL 11

    Expert Comment

    by:rdrunner
    You can assign an ID to a job you create. By doing this you can make sure only one exists. (By deleting the job with the ID 1st and then inserting this.
    0
     
    LVL 6

    Author Comment

    by:billy21
    I thought of that too but you actually can't assign your own id to a job as far as I can see.
    0
     
    LVL 11

    Expert Comment

    by:rdrunner
    You can...

    at [\\Computername] [{[ID] [/delete]|/delete [/yes]}]

    There is an optional ID tag :)
    0
     
    LVL 69

    Accepted Solution

    by:
    0
     
    LVL 6

    Author Comment

    by:billy21
    rdrunner,

    at [\\Computername] [{[ID] [/delete]|/delete [/yes]}]

    That is the syntax for deleting.  There is another syntax example for creating and it does not include id.  You need to specify id in deleting so AT knows which item to delete.  The syntax for creating an item is...
    at [\\computername] time [/interactive] [/every:date[,...] ¦ [/Next:date[,...]] "command"
    0
     
    LVL 11

    Expert Comment

    by:rdrunner
    Oops...

    true :)

    But i like the link emoreau posted :) (Its added to my bookmarks now)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles a…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now