Reputation: 255
I'm using the current code to copy files:
xcopy /s /d:[date] source target
How do I get the date to be N days ago?
Upvotes: 1
Views: 3545
Reputation: 6246
Perhaps robocopy is suitable.
c:\>set N=0
c:\>robocopy srcdir dstdir foo.* /MINAGE:%N% /MAXAGE:%N%
Upvotes: 2