Searching through a windows drive, looking for specific files

Posted on 2011-10-19
Last Modified: 2012-05-12
Is it possible to search through windows drive using DOS or best method

I am looking for .avi, .jpg and hidden files ?

drive is corrupt and I think in some cases holding inaccurate volume size
Question by:MichaelGlancy
    LVL 30

    Expert Comment

    Sure, you can use the Dir command

    For example:

    dir *.jpg     will list all jpg file
    dir *.jpg /s   will list all jpg files in the current folder and all subfolders
    dir *.exe /w    will list all exe files in a wide format (files will be listed across the screen. It fits more files per page.

    Here is a good reference for various switchwes for the dir command:

    Author Comment

    would that search every folder on the drive or just the root ?
    LVL 30

    Accepted Solution

    If you start at the root (c:\) and use the /s switch, it will search every folder and sub-folder

    so, to search for a jpg file on the entire drive, you could execute this:

    dir c:\*.jpg /s /p

    /s = sub-folders
    /p = pause after each full page of listings
    LVL 22

    Expert Comment

    by:Dr. Klahn
    If the drive is corrupt, then perhaps a drive recovery tool would be a better choice.  Most of them allow selection for specific file extensions, and also for file recovery by examined type -- i.e., the program examines the contents of the file to see what it actually is.  Personally I use R-Studio, but there are many equally good programs out there.  

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    In this CloudClass Webinar, Quest ( CTO Mike Dillon gives an overview of the steps involved in building a dynamic disaster recovery plan. Through case studies and an examination of software/hardware tools for monitoring an…
    Throughout my career I’ve read many articles and performed due diligence on recovering VM’s that broke on the XenServer platform. From my experience and perspective it seems to be an ample amount of confusion as to a good base method to start with. …
    This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

    759 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

    8 Experts available now in Live!

    Get 1:1 Help Now