Hi Experts,

How do I write a VB script to keep the latest 7 folders and delete the
remaining folders ?

Thanks.

Re: Keep latest 7 folders and delete remaining folders by Larro

Larro
Thu Jan 26 02:04:51 CST 2006

That's tricky only because the folder property dates change whenever
they are accessed and if it was opened even to just look in the date
changes and you may lose something that you didn't want to.

Is there one specific file in each folder that can be read to determine
the date of the files contained within? Maybe one can be created just
for this purpose.

Once you get an accurate date the rest is relatively easy.

This will help you get started and we're here to help :)
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx

Larro
"Fixing the world one script at a time."