我有一个任务(.bat文件)应该在每15分钟后执行/执行一次。
我不知道在哪里进入它以便安排它?
有了这个,我想看到正在运行的任务的执行(进度)(在命令提示符下)。
答案 0 :(得分:2)
看看schtasks
命令在命令行上设置任务
C:\test>schtasks /?
答案 1 :(得分:1)
Task Scheduler 是一种手动执行此操作的简便方法。
如果您需要编写脚本,请查看 at
命令。
答案 2 :(得分:0)
引自Microsoft Technet文章Schtasks:
; To schedule a task that runs every 20 minutes
;
; The following command schedules a security script, Sec.vbs,
; to run every 20 minutes. The ; command uses the /sc parameter
; to specify a minute schedule and the /mo parameter to specify
; an interval of 20 minutes.
; Because the command does not include a starting date or time,
; the task starts 20 minutes after the command completes, and
; runs every 20 minutes thereafter whenever the system is running.
; Notice that the security script source file is located on a
; remote computer, but that the task is scheduled and executes
; on the local computer.
schtasks /create /sc minute /mo 20 /tn "Security Script" /tr \\central\data\scripts\sec.vbs
您可以在上述参考资料中找到更多解释和示例。