Console Application with task scheduler

做~自己de王妃 提交于 2019-12-01 19:21:06

You can follow the tutorial here How to Create a Automated Task that Runs at a Set Time in Windows 7

The steps outlined are as follows:

  1. Open up Task Scheduler by either typing "task" into the Start Menu search bar, or by opening All Programs -> Accesories > System Tools.

  1. Select 'Create Basic Task' from the right hand pane and the 'Create Basic Task' Wizard will open.

  1. With the Wizard open, type a 'Name' and 'Description' for your new task and click Next. NOTE: The Next button will only be accessible once a 'Name' has been entered.

  1. Select the event/task to run DAILY and click Next.

  1. Select the time as 00:00 and date at which you wish the first task to start (each task afterward will run based on your selection in step 4) then click Next.

  1. Choose the action you with the task to execute from the list then click Next. NOTE: For your query, select 'Start a program'.

  1. Click 'Browse' and navigate to the executable (exe) file of the console app you wish to run then click Next. You can choose to ignore 'Add arguments' and 'Start in'.

  1. Review the task and make sure that you've set all your required information correctly. If satisfied click Finish.

  1. Click the Advanced button on the Schedule tab. There is a checkbox for Repeat task. The default is every 10 minutes. You can change that to 1 minute.

The key here is to find the advanced properties. If you are using the XP wizard, it will only offer you to launch the advanced dialog once you created the task.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!