📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

How do I list HDD folders?

2»

Comments

  • davb
    davb Posts: 1,293
    Part of the Furniture Combo Breaker
    Forumite
    As Bill Scarab said, you need to navigate to your external drive in Windows explorer and find the drive letter, e.g. if it is drive E
    Then at the command prompt (yes the black window) type
    E:
    then do the dir
  • Lil306
    Lil306 Posts: 1,692
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    Forumite
    As others have said. When you type cmd and press enter, it opens a command prompt in the default user directory (which in your case is c:\users\family)

    First you need to tell it to change to another drive. So you type z: then press enter
    The display should then say z:\>

    If you wanted to change folders first you type in cd foldername then run the appropriate commands

    If you are already in the root. To create an outputted file you would use the command line options. As a note > means create and >> means append if it already exists

    So if your command looked like this
    Z:\>dir >c:\help.txt

    It would create a file called help.txt in the root of c showing all the contents of Z: (files and folders)

    As others have said use the switchs above (i..e DIR /S /A /etc) to tell it what to output. If you're stuck you can type DIR /? in cmd prompt and it shows you most of the commands which are common
    Owner of andrewhope.co.uk, hate cars and love them

    Working towards DFD

    HSBC Credit Card - £2700 / £7500
    AA Loans - (cleared £9700)
  • georgiac
    georgiac Posts: 1,189
    Part of the Furniture 500 Posts Combo Breaker
    Forumite
    Thanks all, still stuck but learning fast ( I hope!)

    Think I know what problem may be now, on the root of the hdd I have a folder called PHOTOS and all the folders are inside there.
  • davb
    davb Posts: 1,293
    Part of the Furniture Combo Breaker
    Forumite
    georgiac wrote: »
    Thanks all, still stuck but learning fast ( I hope!)

    Think I know what problem may be now, on the root of the hdd I have a folder called PHOTOS and all the folders are inside there.
    Ok, that's not a problem. So let's assume your ext drive is Z (it might not be).
    Start a command prompt, and type:
    Z:
    cd \photos
    dir /ad /b /s >folders.txt

    Job done - you should then have a text file in the PHOTOS folder called folders.txt containing the list, which you can open with notepad or word.
  • georgiac
    georgiac Posts: 1,189
    Part of the Furniture 500 Posts Combo Breaker
    Forumite
    Success!!!!!!!!

    Many, many thanks everyone.

    Much appreciated.
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 355.9K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.2K Spending & Discounts
  • 248.4K Work, Benefits & Business
  • 606.1K Mortgages, Homes & Bills
  • 179K Life & Family
  • 263.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.