2013-07-03 130 views

回答

8

下面的命令安排MyApp程序在每次系统启动时从2001年3月15日开始运行: 日期是可选的。

{的schtasks /创建/ TN “我的应用”/ TR C:\ APPS \程序myapp.exe/SC的OnStart/SD 2001年3月15日}

+1

用户将系统吧?或者我需要用ru参数指定它? – user2527738

1

您可以指定帐户在任务级别以及在命令级使用两种。

/U to specify user account that should be used to run the actual command /RU to specify user account that should be used to execute the scheduled task

默认情况下都将使用“系统”账号,即与登录用户的权限

有关详细信息:https://technet.microsoft.com/en-us/library/bb490996.aspx