• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

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
0
reysrivera
Asked:
reysrivera
  • 3
  • 2
2 Solutions
 
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now