List of Folders with there last modified date

Posted on 2008-11-17
Last Modified: 2012-05-05
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.

Question by:reysrivera
    LVL 16

    Accepted Solution

    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

    Author Comment

    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?
    LVL 16

    Assisted Solution

    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


    Author Closing Comment

    Excellent Work!!
    LVL 16

    Expert Comment

    Thank you for accepting my solution to your question

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now