VB6 Code to delete old folders

Completed Posted Dec 2, 2011 Paid on delivery
Completed Paid on delivery

I need a vb6 code that looks for specific folders and files in my C drive and delete all the files that are older than 2 years.

My C drive has a lot of folders and sub folders...

I would like my code to go through the first folder and keep drilling in all the subfolders until it hits the end, and then go back to second folder and do the same etc..., looking for any folder or file older than 2 years.

Now i do not want the code to delete the folder according to the date it was modified , but according to its name.

The names are of 2 different forms: "yyyy-mm-dd" and "yyyy_mm_dd" ( note the difference between the dash and the underscore)

for example: today is 2011-12-02, so my code will look for anything earlier than 2009-12-02 and delete it.

Your help is appreciated.

Thanks

Electrical Engineering

Project ID: #1321592

About the project

1 proposal Remote project Active Dec 5, 2011

Awarded to:

melsayedhasan

see my Private message

$100 USD in 3 days
(5 Reviews)
4.7