|
Answer» Hi,
Each night I would like to copy files that have been modified within the last two weeks... I have been trying the FORFILES option:
Code: [Select]FORFILES -p v:\copy1 /d +14 -m *.zip -C "CMD /C XCOPY v:\copy1\FILE v:\copy2"
But I get an error that no files match my criteria. I think the problem is with the +14. If I USE -14 it will copy files OLDER than 14 days, but I need newer than 14 days. Anyone see what my problem is?
Thanks! Welcome to the CH forums.
It's a while since I dabbled with Forfiles but memory says that a date had to be used e.g. +01/01/2009 instead of +14 then forfiles would run on files updated on the date entered to the current date.
The syntax is SHOWN here..
Good luck
|