带有任务计划程序的控制台应用程序 [英] Console Application with task scheduler

查看:134
本文介绍了带有任务计划程序的控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个控制台,我想每1分钟不间断运行
,我尝试执行调度程序任务,但是我认为我的配置做得不好,有人可以帮忙吗?
我想完成此任务
谢谢

解决方案

您可以在此处按照教程进行操作


  1. 从右侧窗格中选择 创建基本任务,然后将打开 创建基本任务向导。


  1. 打开向导,键入 名称,然后为新任务添加 说明,然后单击下一步。
    注意:下一步按钮只有在输入 名称后才能使用。


  1. 选择您希望第一个任务开始的时间为00:00和日期(之后每个任务将根据步骤4中的选择运行),然后单击下一步。


  1. 点击'浏览并导航至您要运行的控制台应用程序的可执行文件(exe),然后单击下一步。您可以选择忽略添加参数和开始于。


  1. 查看任务,并确保正确设置了所有必需的信息。如果满意,请单击完成


  1. 点击高级按钮, code>计划标签。 重复任务有一个复选框。默认值为每10分钟。您可以将其更改为1分钟。

此处的关键是查找高级属性。如果您使用的是XP向导,则仅在创建任务后才提供启动高级对话框的功能。


I have created a console and I want to run it every 1-minute nonstop I try to put in a scheduler task but I think that my configuration is done badly can someone help, please? I want to finish this task thank

解决方案

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.

这篇关于带有任务计划程序的控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆