如何在批处理脚本中使用schtask [英] how to use schtask in batch script

查看:184
本文介绍了如何在批处理脚本中使用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.


这篇关于如何在批处理脚本中使用schtask的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆