Showing posts with label File System. Show all posts
Showing posts with label File System. Show all posts

Friday, 12 October 2012

Delete all files in a folder older than x (Part 2)

I wrote a script to delete all files last modified over a certain number of days a few days ago, as mentioned here.  The purpose of the script, I later found out, was to clear old Exchange log files from the email servers, rather than interactively.  The script in the linked page asks for a folder path and number of days, so whilst may be useful for some things, is no good for the purpose we needed.

Tuesday, 9 October 2012

Delete all files in a folder older than x

I spent half the day at work writing a VBScript to delete files in a folder last modified after a user specified number of days.