Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

how to automate using window's scheduler 9should my program be a console or window application)?

how do i use window's scheduler to run an executable. should my program be a console or window application?
1 Solution
- Open up Scheduled Tasks under Accessories on the Start Menu.
- Click Add Scheduled Task, and follow the wizard.

The wizard will let you schedule an exe file to be run. Both Console and Windows Application work fine.

If you choose to use a Windows Application, it's probably a good idea to make it close itself when its job is done. A console application will be a little faster.
You can also find Scheduled Tasks on the control panel
Éric MoreauSenior .Net ConsultantCommented:
it can be both
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Éric MoreauSenior .Net ConsultantCommented:
I normally create Windows application that I can use as a normal application (for debugging) using an argument
Here is a good tutorial of windows task scheduler...
window  application
jgordinAuthor Commented:
is it possible to create dependencies. that is,

task1 at 10am
task2 when task1 is completed
It might be possible to create dependencies, but I haven't found a way to do it. You could of course handle the dependencies in your code, or create some sort of launcher application(which would be the task scheduled to run), which launches other applications if the previous was successful.

Anyway, since it was not part of the original question, I suggest you repost a "Windows Task Scheduler and dependencies" question in the Zone corresponding to your Operating System. You will probably get a better answer from the experts in that area.

Featured Post

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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now