Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a large MP3 files collection that is about 80 GB, approximately 16000 songs. A friend of mine wants a list of my music to start a collection of his own. Bringing them over on an USB drive is not possible as we live in different continents and he has no problem gathering them on his own anyway.

Is there an easy way to get just the names of all files in a directory, without getting directory names too?

I don't mind installing software if it's needed, but I would prefer not to.

share|improve this question

5 Answers 5

You can use the dir command. First navigate to the folder with all of the files with command prompt, you can copy a directory from explorer and paste it in by right-clicking if you don't wish to type.

To exclude directory names but recurse into subdirectories:

dir /a-d /s *.mp3 > mp3s.txt

although the above will show hidden files (thumbs.db among other things from album art) so you may want to hide those:

dir /a-d-h /s *.mp3 > mp3s.txt

both of the above approaches will make a text file called mp3s.txt in your mp3 folder.

For a GUI approach, you can use DirPrint, The How-To Geek recently wrote an article on it:

enter image description here

share|improve this answer
    
i think you will also need a /s to include sub-directories –  Antony Sep 11 '09 at 3:24
    
And use "dir /a-d-h /s *.mp3 > mp3s.txt" to filter out everything this is not a MP3 (if any) –  Snark Sep 11 '09 at 3:26
    
By how the question was worded I assumed they were all in a single folder, but a very valid point. Both suggestions taken into consideration to improve the answer. –  John T Sep 11 '09 at 3:29
    
16000 files in one folder? i hope not... –  Antony Sep 11 '09 at 3:31
2  
Ya never know these days. My grandma had a single folder of over 25000 high quality images from a digital camera and called me over because the computer would lock up trying to open the folder. Trying to draw thumbnails from all of those takes ages so I had to move about 500 at a time to subfolders so she could manage them. Thank god for Linux LiveCDs, head -n 500 | xargs mv ..\Folder1 and so on :) –  John T Sep 11 '09 at 3:48

For those who use Total Commander, there are menu items for this:

  • Copy Selected Names To Clipboard
  • Copy Names With Paths To Clipboard
  • Copy to Clipboard With all Details
  • Copy to Clipboard With Path+Details

It's in the Mark menu and work with selected files. Select them all ("+" on the numeric pad, "*.mp3" as filter) if you need to copy the names of all MP3 files in the directory.

share|improve this answer
1  
that's true, i came accross 4 or 5 question today where Total Commander would be a fine choice. truly a 'Jack of All Trades'! :) +1 –  Molly7244 Sep 11 '09 at 3:49
1  
@Molly I see you have a soft spot for Total Commander :) –  alex Sep 11 '09 at 6:06

If you have Winamp, there's an option to save a playlist as an HTML page with all the songs in the playlist. That way, if your songs are labeled ok, you'll have a nicely formatted list, with no folder names.

share|improve this answer

The JR Directory Printer utility allows you to print a listing of every subdirectory and/or file contained within a directory and/or subdirectory. It supports lowercase/dos style filename, file size in KB/bytes, attributes, custom file length, etc.

enter image description here

The result displayed in NotePad or default text editor as "dirprint.txt" file. This file is created in "JR Directory Printer" installtion folder, each time you click "Start" button.

Options:

  • Check Recurse Sub-directories option to see a complete list of all subdirectories and all files in all directories.

  • The Lowercase Filename option will force all file names into lowercase regardless of the actual file name.

  • DOS style filename option will limit the file name length within 8 chars.

  • Display Sub-directories will result in a list of all subdirectories contained under the selected directory along with a list of all individual files contained under the root directory. It will not list all subdirectories or individual files contained in the main subdirectories. To see a complete list of all subdirectories and all files in all directories, you would check the Recurse Sub-directories option and click on the Start button. This would rewrite the"dirprint.txt" file using the new options.

  • You can limit length file names so that they fits properly in list. By default this value is 35 chars.

  • You can check/uncheck Display Size, DateTime and Attributes option to list/unlist the file size, modified date/time and file attributes (a - Archives, r - Read Only, s - System, h - Hidden).

share|improve this answer
    
keep in mind he needs to filter out directory names too, not sure if it has an option for that but by the looks of it I don't think so. –  John T Sep 11 '09 at 3:06
    
not to be seen in this screenshot, but under the Display Tab, clear the box 'Sub-directoriies' and they won't be listed. you can also remove other info such as 'file size' 'date & time' and 'attributes'. and the length of the file name can be limited too. –  Molly7244 Sep 11 '09 at 3:45
1  
and of course you can make it 'portable'. just rip the installer with Universal Extractor, quite handy. –  Molly7244 Sep 11 '09 at 3:47

FreeCommander would be my weapon of choice to do this. Folder --> Make Folder List. Alos has options to copy selected files to clipboard. Great tool and it's free.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.