Script help - deleting files older than certain number of days
Posted on 2006-11-03
I have various sets of folders in a particular folder structure on a windows machine, that I have my backups going to. My backup runs a backup to disk job that dumps the B2D files in various folders for various servers. What I need to do is retain 3 days worth of these B2D files, and get rid of the rest. Every night I run a backup of the B2D Files to tape, so deleting them is ok. Can someone help me put together a VB script (or whatever method is best) to delete .bkf files with a data modified of older than 3 days. I just want to keep 3 days worth of files, so anything older than 3 days can be deleted. Any help would be greatly appreciated.