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:
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!
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:
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!