Computing.Net > Forums > Disk Operating System > sub directory list,no files?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sub directory list,no files?

Reply to Message Icon

Name: spamtrap
Date: July 14, 2003 at 22:36:35 Pacific
OS: win98se
CPU/Ram: Athlon2000+ 768Mb 266 DDR
Comment:

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/album1

Using the dir command, I can get a list of subdirectories ( 1 level only, ie just the artists )in aplphabetical order using..
dir /ad /on /b

However 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



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: July 14, 2003 at 23:11:17 Pacific
Reply:

How about this:

dir /ad /on /b |SORT

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Response Number 2
Name: spamtrap
Date: July 15, 2003 at 00:26:28 Pacific
Reply:

Thanks Secret_Doom,
That's perfect.

Much appreciated,
Spamtrap


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: sub directory list,no files?

How to remove same file types in sub-directories? www.computing.net/answers/dos/how-to-remove-same-file-types-in-subdirectories/4575.html

Dir list of files only,no subfolder www.computing.net/answers/dos/dir-list-of-files-onlyno-subfolder/15578.html

Printing directory list to file www.computing.net/answers/dos/printing-directory-list-to-file/1625.html