I am looking for some help with either a batch file or vbscript to do the following:
1) I have folders on my homenetwork that I don't want to go over say 20gb size. So once they hit say 24gb I want a script to run nightly/weekly that would watch that folder and once it is over it would delete the oldest file in that folder and loop until the folder is no longer over 20gb.
2) Almost same concept but would want to delete the oldest files in a series where more than N shows in the series already exist. So say I have a folder called "TV Shows". In this folder I don't want it to be more than 20 shows in that folder. Once it goes over it would delete the oldest show in that folder until there are only 20 shows.
thanks
1) I have folders on my homenetwork that I don't want to go over say 20gb size. So once they hit say 24gb I want a script to run nightly/weekly that would watch that folder and once it is over it would delete the oldest file in that folder and loop until the folder is no longer over 20gb.
2) Almost same concept but would want to delete the oldest files in a series where more than N shows in the series already exist. So say I have a folder called "TV Shows". In this folder I don't want it to be more than 20 shows in that folder. Once it goes over it would delete the oldest show in that folder until there are only 20 shows.
thanks