Friday, October 23, 2015

Powershell delete files older than......

Hi mates,
how many times you asked to yourself : how can I delete files older than a specified date ? How can I clean a specific directory that preserve, for example, backup files from several sources ?
Quick and easy, skinny and essential.
Here below the script .....you can customize the number of days that you want preserve : older items will be deleted.
Obviously you have to customize the path too.

Here you are :
No complications, no tricks, only the essential.
Hope this helps.
See you soon

No comments:

Post a Comment