[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Programatically scheduling a job

Posted on 2004-10-26
6
Medium Priority
?
333 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
Comment
Question by:billy21
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 11

Expert Comment

by:rdrunner
ID: 12412606
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
ID: 12412727
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
ID: 12412876
You can...

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

There is an optional ID tag :)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 12413154
0
 
LVL 6

Author Comment

by:billy21
ID: 12419314
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
ID: 12419560
Oops...

true :)

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

650 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