如何在批处理脚本中使用schtask
问题描述:
我正在尝试从一个目录到另一个目录每两分钟创建一次备份
这是我的
来源:C:\ Users \Documents \\ \\ backup \
目的地:C:\ Users \Documents\ArchiveUp
i尝试用
SCHTASKS / create / tntimeinterval/ trC:\ Users \Documents\Backup \ *。*/ sc MINUTE / mo 2
它对我不起作用
有人可以解雇我吗?
i'm trying to create backup for every two minutes from one directory to another
this is my
source : "C:\Users\Documents\Backup\"
destination : "C:\Users\Documents\ArchiveUp"
i tried with
SCHTASKS /create /tn "timeinterval" /tr "C:\Users\Documents\Backup\*.*" /sc MINUTE /mo 2
it didn't work for me
could anyone hep me?
答
您尚未指定要运行的任务。 / TR
选项需要可执行文件的完整路径。您只提供了路径搜索过滤器。
You have not specified a task to run. The /TR
option requires the full path of an executable file. You have merely provided a path search filter.