Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I want to get a list of all the subdirectories within a directory but without a file listing.
The reason being, I store my mp3's in a directory called mp3 , with a subdirectory for each artist, within which is a subdirectory for each album from that artist. I need a list of artists and albums. I also need this list to be in alphabetical order or I will never find anything. Something like..
artist1
artist1/album1
artist1/album2
artist2
artist2/album1Using the dir command, I can get a list of subdirectories ( 1 level only, ie just the artists )in aplphabetical order using..
dir /ad /on /bHowever when I try to get all the subdirectories (artist/album) by adding the /s switch, the alphabetical order is lost.
Perhaps the /ad and /s commands dont work well together ?Any ideas ?
A winxp or win98 solution is fine, say a small utility, but I would have thought there would be a simple dos solution.
Thanks,
Spamtrap

How about this:
dir /ad /on /b |SORT
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |