So, I have a large file tree that is something like this
\foo\foo1\foo\files\archive
\foo\foo2\foo\files\archive
\foo\foo3\foo\files\archive
\foo\foo4\foo\files\archive
my aim is to be able to loop through into each of the "\files" folders, and move the files in that folder to the "\archive" folder if they are older than 6 days old
Ideally a .bat script would be best. I'm a real novice when it comes to this kind of stuff and usually just use robocopy to perform these kinds of tasks but since the file structure is so dense writing 50+ lines of code to do this seems like the long way round.
I need to be able to drill down into 16 folders that each contain another 7 folders which contain the target files and the archive location and then decide if the target files are past the max age and move them into a subdirectory which lives inside the target location if they exceed the max age.