hello All. I aint really a programmer, but I am assigned to do an automation piece. your expertise on powershell will greatly help me.
Scenario:
Need to delete files which are x no. of days old. Here's the thing, the files are grouped by Month of modification (folder level), then zipped by the date of the modification.
For April:
D:\Data\Processed\Processed April\Processed April 1, 2014.zip
D:\Data\Processed\Processed April\Processed April 2, 2014.zip
...
For March
D:\Data\Processed\Processed March\Processed March 1, 2014.zip
D:\Data\Processed\Processed March\Processed March 2, 2014.zip
and so on..
Take note the the .zip files are created 2 weeks after they were modified coz it's a different powershell that zips the file.
Ex.
Processed March 2, 2014.zip - contains all files with modified timestamp march 2, this was zipped on later date (March 16 cause only files older than 2 weeks are zipped daily).
is it feasible in Powershell?