Windows创建Task

1. Log on to the user account that you want to create this task to run for.

2. Open the Start Menu, then type taskschd.msc in the search box and press enter.

3. If prompted by UAC, click on Yes.

4. In the left pane of Task Scheduler, click on the Task Scheduler Library folder, then click on New Folder in the far right pane. (see screenshot below)

5. Type in a name (ex: program name "Core Temp") you want for the new task folder to make finding the task easier, then click on OK. (see screenshot below)

6. In the left pane of Task Scheduler, click on the new task folder (ex: Core Temp), and click on Create Task in the far right pane. (see screenshot below)

7. Under the General tab, type in a name for the task (ex: Program Name "Core Temp"). (see screenshot below)

8. Under the General tab,

  • If Used in a Administrator User Account

    • Check the Run with hightest Priveleges box. (see screenshot above)
  • If Used in a Standard User Account
    • Leave the Run with hightest Priveleges box unchecked. (see screenshot above)

9. Click on the Configure for drop down box to open it, and select Windows® 7, Windows Server™ 2008 R2. (see screenshot above and below)
NOTE: This is like compatibility mode. If the program does not support running in Windows 7 normally, then you can select the OS that is does support running in instead to have it run in compatibility mode as if it was running in that OS instead of Windows 7.

10. Do steps 11 and/or 12 below for when you would like to have this task run.

11. To Have the Task Run "At startup"

A) Click on the Triggers tab and New button. (see screenshot below)

B) In the Begin the task drop down menu list, select At startup. Next, make sure that Enabled is checked, and click on OK. (see screenshot below)

C) Do step 12 as well. It is required for the "At startup" to work.

12. To Have the Task Run "At log on"

A) Under the Triggers tab, click on the New button. (see screenshot below)

B) In the Begin the task drop down menu list, select At log on. Next, make sure that Enabled is checked, and click on OK. (see screenshot below)

13. Click on the Actions tab and New button. (see screenshot below)

14. In the Action drop down menu list, select Start a program, then click on the Browse button. (see screenshot below)

15. Navigate to and select the program‘s EXE file or shortcut to the EXE file, then click on Open. (see screenshot below)
NOTE: Remember that a standard user account cannot run a elevated program at startup or log on. See NOTE at top of tutorial for more information.

   Tip

If you created an elevated program shortcut and wanted to run it at startup and/or log in, you would enter the full path of the elevated program shortcut here.

16. Click on OK. (see screenshot below)

17. Click on the Conditions tab, and uncheck the Stop if the computer switches to battery power box first, then uncheck the Start the task only if the computer is on AC power box. (see screenshots below) 
NOTE: This step is mostly for laptops, so that you will be able to run the program when the laptop is running on battery power.

18. Click on the Settings tab, and check the If the task fails, restart every box. (see screenshot below)

19. Click on OK. (see screenshot above)

20. You can now close Task Scheduler. (see screenshot below)
NOTE: If you look in the middle pane under the Author column for the task that you just created, you will be able to tell what user account the task is for.

21. Log off and log on this user account, or restart the computer to test you new task.

   Tip

To Delete the Task:

If you decide you would like to delete the task later, then you can right click on the task (step 8) in the middle pane and click on Delete and Yes. Next, you can delete the task folder (step 5) when empty the same way. (see screenshot above)

时间: 2024-10-09 19:05:06

Windows创建Task的相关文章

C# Windows Schedule task之获取task下次运行时间

最近做了一个需要和Windows Schedule task相关的功能,即通过schedule,计算下次跑task的时间. 通过是用第三方的DLL来实现,从下面的网站下载: http://taskscheduler.codeplex.com/ 1. 在Schedule Task里增加一个task,命名为"testJing", trigger设置为每五天 增加一个Trigger,如下图: 2. 使用VS2012,创建一个Console Application,命名为ScheduleTas

【点滴积累,厚积薄发】windows schedule task的最小时间间隔是多少?

在一些业务系统中,经常会出现一些需要定时运行的任务,业界已有很多优秀的选择,比如windows schedule task,Quartz等等.在以前在新蛋的时候用的是内部封装的JobConsole,非常棒,是一个很不错的产品.现在在新公司里面,经过内部技术同事讨论,决定用windows schedule task.在之前设置一些Job时,好像感觉windows schedule task的最小时间间隔是5分钟,结果有一些要求及时性好一些的Job也只能暂时设置为5分钟.结果老大有一天去尝试研究了一

Windows创建自动化任务

Windows创建自动化任务使得开机就打开相应的Python目录 1:计算机管理 2:找到任务计划程序 3:创建基本任务 4:任务触发器 5: 建立bat执行文件 start "" "G:\Python" 6:启动程序 7:创建基本任务向导 8: 9:

windows创建桌面快捷方式的VBA脚本

Dim wShell, oShortcut    'Dim strDesktop$ ' 为了与VBS兼容,    Dim strDesktop    ' 这里改写一下,测试通过...    Set wShell = CreateObject("Wscript.shell")    strDesktop = wShell.SpecialFolders("Desktop")    strDesktop = strDesktop + "\搜物网-货源必备.lnk

关于Windows创建进程的过程

之前有听到别人的面试题是问系统创建进程的具体过程是什么,首先想到的是CreateProcess,但是对于具体过程却不是很清楚,今天整理一下. 从操作系统的角度来说 创建进程步骤:        1.申请进程块              2.为进程分配内存资源        3.初始化进程块        4.将进程块链入就绪队列 课本上的知识... 从CreateProcess的具体流程来说: CreateProcess它首先创建一个执行体进程对象,即EPROCESS 对象,然后创建一个初始线程

ArcSDE 10.1 For Windows 创建空间数据库与常见错误_SQL Server

本文是2013年时候参加ESRI竞赛,创建ArcSDE 10.1 for SQL Server时候出问题了,因此写了该文档. 由于一直忙于学习,忘了发布.今天一师弟也遇到同样问题,为此我觉得可能有不少人遇到该问题, 所以和大家一起分享一下,请大家批评指正. 1.创建地理数据库 1.1.打开地理数据库管理工具 在工具箱中新增了“地理数据库管理”(英文版显示:GeodatabaseAdministration)工具集,其中包含进行地理数据库管理操作的若干工具,如下图所示: 1.2.创建企业级地理数据

grunt入门讲解4:如何创建task(任务)

每当运行Grunt时, 你可以为其指定一个或多个任务, 这些任务用于告诉Grunt你想要它做什么事情. 如果你没有指定一个任务,并且你已经定义一个名为 "default" 的任务,那么该任务将会默认被执行. 任务别名 如果指定了一个任务列表taskList,新任务名taskName将是这一个或多个指定任务的别名.当运行此 "任务别名" 时,在taskList 中指定的每个任务都会按照其出现的顺序依次执行.taskList参数必须是一个任务数组.grunt.regis

Windows 创建 Tomcat 服务

CATALINA_HOME=D:\Program-Files-Dongbz\apache-tomcat-6.0.41-coding cd D:\Program-Files-Dongbz\apache-tomcat-6.0.41-coding\bin service.bat install 创建 service.bat remove   删除

windows创建任务计划(周期执行bat脚本)

https://jingyan.baidu.com/article/ca00d56c767cfae99febcf73.html windows找到任务计划程序: 这台电脑->管理 原文地址:https://www.cnblogs.com/qlqwjy/p/8407107.html