deleting files over a week old with batch files
Posted on 2011-03-25
My company is running trendnet securview ip camera's for our security system that saves large amounts of files to C:\videos directory every couple of minutes. Naturally these directories grow very quickly.
I'm looking for a simple way of having those directories automatically remove video's older than a week every night so as to avoid running out of disk space for any of the camera's.
My knowledge of ms-dos and batch scripting is fairly limited so i want to accomplish this in as simple a manner as possible. This script needs to run on Vista, and windows server 2008 r2.