📨 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?

I have an external hard drive with several hundred folders on it.

Each contains a selection of photo files from different events.

I would like to be able to save a list of the folder names onto my PC, preferably in a word document.

I'm not bothered about listing the file names as they are just the camera image number.

Is this possible and how please.

Thanks
«1

Comments

  • BillScarab
    BillScarab Posts: 6,027 Forumite
    It's easy enough from a cmd prompt.

    On XP click start, then run and type in CMD

    On Vista or Win 7 click on start, then type cmd in the search box and then double click it

    navigate to your external drive, e.g. if it is drive E

    cd E:\

    then type

    dir > folders.txt

    that will creat a file called folders.txt on your external driver with a list of the folders in it. You can then load it into word, edit if required and save it on your PC.
    It's my problem, it's my problem
    If I feel the need to hide
    And it's my problem if I have no friends
    And feel I want to die


  • timbim_2
    timbim_2 Posts: 1,292
    1,000 Posts Combo Breaker
    Forumite
    If you want to show them by size, a good program is treesize.
    Ubuntu is an ancient African word, meaning: 'I can't configure Debian'.
  • itwiz
    itwiz Posts: 38 Forumite
    BillScarab wrote: »
    navigate to your external drive, e.g. if it is drive E

    cd E:\

    then type

    dir > folders.txt

    that will creat a file called folders.txt on your external driver with a list of the folders in it. You can then load it into word, edit if required and save it on your PC.

    That won't quite work, as your command prompt will probably dump you to your C: drive by default. If the folders are on drive E, at the command prompt you'd need to type:

    E:
    cd \

    which is subtly different, then I'd recommend

    dir /b > folders.txt

    to give just the folder names or

    dir /b /s > folders.txt if there are subfolders

    Cheers.
  • BillScarab
    BillScarab Posts: 6,027 Forumite
    itwiz wrote: »
    That won't quite work, as your command prompt will probably dump you to your C: drive by default. If the folders are on drive E, at the command prompt you'd need to type:

    E:
    cd \

    which is subtly different, then I'd recommend

    dir /b > folders.txt

    to give just the folder names or

    dir /b /s > folders.txt if there are subfolders

    Cheers.

    Cheers, my memory is worse then I thought!
    It's my problem, it's my problem
    If I feel the need to hide
    And it's my problem if I have no friends
    And feel I want to die


  • davb
    davb Posts: 1,293
    Part of the Furniture Combo Breaker
    Forumite
    edited 13 January 2010 at 12:04PM
    itwiz wrote: »
    dir /b > folders.txt

    to give just the folder names or

    dir /b /s > folders.txt if there are subfolders
    That still won't quite do it, you need:
    dir /ad /b > folders.txt
    or
    dir /ad /b /s > folders.txt (to list sub folders).
  • itwiz
    itwiz Posts: 38 Forumite
    davb wrote: »
    That still won't quite do it, you need:
    dir /ad /b > folders.txt
    or
    dir /ad /b /s > folders.txt (to list sub folders).

    Gahhh, you're right, he only wants folder names. I find I'm using the command prompt less and less these days but it still has its uses. Thanks for correcting.
  • georgiac
    georgiac Posts: 1,189
    Part of the Furniture 500 Posts Combo Breaker
    Forumite
    Hi there all.

    Oh dear, I'm stuck.

    Should have explained that I am a ludite!!!

    I am running vista and the drive is ( Z: ) for some reason.

    I type cmd and it brings up the black box with white writing.

    That has a message that says C:\users\family>

    when I type cd Z:\ it just repeats to C:\users\family>

    What am I doing wrong please?
  • georgiac wrote: »
    Hi there all.

    Oh dear, I'm stuck.

    Should have explained that I am a ludite!!!

    I am running vista and the drive is ( Z: ) for some reason.

    I type cmd and it brings up the black box with white writing.

    That has a message that says C:\users\family>

    when I type cd Z:\ it just repeats to C:\users\family>

    What am I doing wrong please?

    Try leaving out "cd" and just type "z:" (without quotations)
  • BritRael
    BritRael Posts: 1,158 Forumite
    The above was wrong; if you want to change the drive simply type z: and hit the 'enter' key.

    You also do not need cd \ to take you to the root as you will already be there :)
    Marching On Together

    I've upped my standards...so up yours! :)
  • georgiac
    georgiac Posts: 1,189
    Part of the Furniture 500 Posts Combo Breaker
    Forumite
    Getting somewhere at last.

    that brings up a new line saying

    Z:\>

    now what please!?!
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.