aw626
aw626

Reputation: 255

Copy files that are N days old

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

Answers (1)

jon
jon

Reputation: 6246

Perhaps robocopy is suitable.

c:\>set N=0

c:\>robocopy srcdir dstdir foo.* /MINAGE:%N% /MAXAGE:%N%

Upvotes: 2

Related Questions