I want to print a list of all the folders in my MP3 folder.

Nebben

Senior member
May 20, 2004
706
0
0
All of my MP3s are organized by folder by artist and album. like, \MP3\Artist\Album.

I want to print a list of all the artist and album folders somehow, so that I have a list of all the albums that I have, for various purposes.

What's the best way to do this? I can't really figure out a way other than printscreens of the folders in explorer, and it would seem there's a better way to do it.

 

GeekDrew

Diamond Member
Jun 7, 2000
9,099
19
81
Launch command interpreter, switch to the directory of your choice.

Run:

dir /A:D /B > c:\yourdirectorylisting.txt

IIRC, that'll do it.

<edit>

If you want to recurse and print all subdirectories, add /S after the /B.
 

Evadman

Administrator Emeritus<br>Elite Member
Feb 18, 2001
30,990
5
81
All directories like GeekDrew said:
dir /A:D /B /O /S >Y:\output.txt

All files in the directories and directory itself:
dir /B /O /S >Y:\output.txt

All files with directory info, but the directory itself is not included:
dir /A:-D /B /O /S >Y:\output.txt
 

Reel

Diamond Member
Jul 14, 2001
4,484
0
76
Another "dos" program you might find useful is called tree. Give it a shot, it actually makes a handy tree diagram of your folder structure.
 

jamesave

Golden Member
Aug 27, 2000
1,610
0
76
That's pretty useful! Thanks!

Apparently Tree result cannot be properly formatted into txt. Is there any other way to stored the tree results?