The following commands are for moving / deleting files in a folder after a set time limit in days.
Deleting –
forfiles -p "C:\what\ever" -s -m *.* /D -<number of days> /C "cmd /c del @path"
moving-
forfiles -p "C:\what\ever" /m *.* /s /d -<number of days> /c "cmd /c move @file C:\what\ever"
Was this helpful?
0 / 0