I'm sure this is possible with PowerShell, if not a simple batch file, but I'm not sure the proper syntax.
I download a lot of... videos... and they all get dumped into a single folder. I want a script that moves files out of that folder into a different folder once they're over a month old. That's easy enough but I also want files moved out of that 'other folder' into yet another folder once those are two months old, and so on.
For example if I ran this script on 6/1 with what I currently have, everything modified in May would stay there, everything modified in April would go into an April folder, everything modified in March into March, etc. Then, if I run it again on 7/1, everything modified in May that exists in the primary folder would get moved into a May folder.
I hope that makes sense. I can create the folders, so the script doesn't need to account for that, and they can be named 1-12 rather than by month, if that makes the scripting easier, but the original folder needs to be separate and always contain the past 30 days worth of files. Any help is appreciated.
I download a lot of... videos... and they all get dumped into a single folder. I want a script that moves files out of that folder into a different folder once they're over a month old. That's easy enough but I also want files moved out of that 'other folder' into yet another folder once those are two months old, and so on.
For example if I ran this script on 6/1 with what I currently have, everything modified in May would stay there, everything modified in April would go into an April folder, everything modified in March into March, etc. Then, if I run it again on 7/1, everything modified in May that exists in the primary folder would get moved into a May folder.
I hope that makes sense. I can create the folders, so the script doesn't need to account for that, and they can be named 1-12 rather than by month, if that makes the scripting easier, but the original folder needs to be separate and always contain the past 30 days worth of files. Any help is appreciated.
Last edited: