Click here to Skip to main content
15,887,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Comments
[no name] 4-Dec-15 12:25pm    
"it didn't work for me" is not a helpful statement.

1. What do you expect?
2. What do you get?

The answer to these two questions could help to help ;)
Alan N 4-Dec-15 13:04pm    
What would you enter at a command prompt to execute your backup?
"C:\Users\Documents\Backup\*.*" will not copy files.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900