spshanth
I wish you luck,
but I fear you will get a lot more experience than you want !!!
Created in 2003 I have C:\Windows.
This is MUCH MORE than 2 weeks old.
If I applied the rule of deleting a folder when it was two weeks old, it would save 4.7 GB of disc space, but I would not be able to do much with all that extra space but no operating system.
The date of a folder does NOT indicate its most recent contents;
it just possibly corresponds to the most recent file dates at the "root" of this folder,
but ignores any more recent dates of folders and subsequent files it may contain.
Whatever the rules (if any) may be, they probably depend upon whether you are looking at "Created" or "Modified".
There are no rules for "Accessed". If you use Windows Explorer to look in an obscure region you have not looked at for some time, you may see an ancient "Accessed" date. This is meaningless. If you reboot the computer you will now see it was accessed 5 minutes ago. Accessed does not mean the contents were read or written.
The "Accessed" date changes if Windows Explorer shows that file exists,
but it will NOT change if you use the "DOS" command "DIR".
File dates are interesting, and quite useful, but I would not depend upon them to control what gets deleted.
Regards
Alan