2013-07-03 202 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