Create List Out Of Files In Folder?
Home | Reviews and Features | Special Reports | Forums |

Results 1 to 8 of 8

Thread: Create List Out Of Files In Folder?

  1. #1
    Join Date
    Apr 1999
    Location
    Manila, Philippines
    Posts
    13,269

    Create List Out Of Files In Folder?

    Good morning, trusty HWC!

    I was wondering, does anyone know of a simple way of generating a simple Notepad or Excel file out of the contents that is in a specific directory? I have a folder on my brand new NAS and it has thousand of songs and movies in it and I was wondering if I could simply generate a listing of my music and video directory?

    Thanks everyone!
    ? Quantum Physics ? Light travels faster than sound. This is why some people appear bright until you hear them speak.

  2. #2
    Join Date
    May 2006
    Location
    Arkham Asylum, Cell 13
    Posts
    3,372
    You can export the dir command to a text file.
    dir <pathname> > list.txt

    That's really basic. If you want more formatting options, try Pir or Karen's Dir Printer.
    http://www.pekspro.com/english/pir.html
    http://www.karenware.com/powertools/ptdirprn.asp

  3. #3
    Join Date
    Aug 1999
    Location
    NW, IA USA
    Posts
    72
    Quote Originally Posted by Toolbox View Post
    Good morning, trusty HWC!

    I was wondering, does anyone know of a simple way of generating a simple Notepad or Excel file out of the contents that is in a specific directory? I have a folder on my brand new NAS and it has thousand of songs and movies in it and I was wondering if I could simply generate a listing of my music and video directory?

    Thanks everyone!
    cmd prompt, change to the folder,
    type: dir >list.txt
    for bare list: dir /b >list.txt
    for everything in the folder including subfolders: dir /b /s >list.txt

  4. #4
    Join Date
    Apr 1999
    Location
    Manila, Philippines
    Posts
    13,269
    Thank you so much for the replies... I'll try each of the options.
    ? Quantum Physics ? Light travels faster than sound. This is why some people appear bright until you hear them speak.

  5. #5
    Join Date
    Apr 1999
    Location
    Manila, Philippines
    Posts
    13,269
    Quote Originally Posted by me4get View Post
    dir /b /s >list.txt
    How do I execute this command if my directory is on a NAS Server? Will it work the same?
    ? Quantum Physics ? Light travels faster than sound. This is why some people appear bright until you hear them speak.

  6. #6
    Join Date
    Mar 2000
    Posts
    27,205
    Just a reminder,
    If you use the: dir <pathname> list.txt from the default command prompt,
    C:\Documents and Settings\username
    The list file will appear in C:\Documents and Settings\username
    "I know nothing."
    Cheers.

  7. #7
    Join Date
    May 2006
    Location
    Arkham Asylum, Cell 13
    Posts
    3,372
    Like I said, you need to enter the PATHNAME

    dir <pathname> /b /s > list.txt

    if you do a dir /? it will show you the different switches.

  8. #8
    Join Date
    Feb 2011
    Posts
    322
    If <pathname> contains any spaces, enclose the string in quotes. For example:
    dir "C:\Documents and Settings\Jane Doe\My Documents\My Music"
    Doc

    ____________http://www.microsoft.com/security____________
    \____________________ ____.-.____ ____________________/
    \_____________\ -._)!(_.- /_____________/
    \_______\. ~\ /~ ./_______/
    \_______/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •