List of Folders with there last modified date

To All,

I have lots of folders and file and some of them is very old. I need a utility that will list down all my folders and file with the last modified date.

Thanks
reysriveraAsked:
Who is Participating?
 
t0t0Commented:
dir /o:g-d /s |find /v "File(s)" |find /v "<DIR>          ." >> files.txt

NOTE: There are 10 spaces between "<DIR>" and "."

Now locate FILES.TXT and view it in notepad
0
 
reysriveraAuthor Commented:
Cool it works. Now I need to filter it. In the list, show me only 3 years old and earlier, what the cmd I use?
0
 
t0t0Commented:
Now that you've got the list of files and folders in FILES.TXT you could do the following:

type files.txt |findstr "2006 2007 2008 Directory" >> files2.txt

NOTE: The capital 'D' in "Directory"
NOTE: A new list FILES2.TXT is generated using FILES.TXT - note the '2' in the filename
 
Now locate FILES2.TXT and view it in notepad

0
 
reysriveraAuthor Commented:
Excellent Work!!
0
 
t0t0Commented:
Thank you for accepting my solution to your question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.