I recently put together a PowerShell script that creates directories named by date in the following format "yyyyMMddHHmm"
What I have been trying to do is figure out how I can go back through and have the script (or just make a new one) automatically delete any directories that are more than three days old. I would like to be able to pull the name of the folder (as in read the date in the format above) and have that be the determining factor but I am unsure as to where I would even start with this one. I guess knowing what the steps are so that I could break it down would be helpful.
Anyone ever try something like this before with PowerShell?