2

I want to move all avi files that were last edited 5 days or less from one directory to an other directory.

I got it working the other way around. I also want it to be fully automated so manually setting the date won't do for me.

What I've got so far is this:

forfiles -p "<directory1>" -s -m *.avi /d -5 /C "cmd /c move @file <directory2>"

Swapping sign of the -5 doesn't work.

I'm using Windows 8.

Does anyone know a way to do this (with forfiles or differently)?

aschipfl
  • 33,626
  • 12
  • 54
  • 99
cmd noob
  • 21
  • 1
  • 1
    Possible duplicate of [FORFILES date -after- (date calc in cmd file)](http://stackoverflow.com/questions/19296588/forfiles-date-after-date-calc-in-cmd-file) – aschipfl Jun 21 '16 at 18:35

0 Answers0