Can someone help me with a should-be-simple-but-I-can't-figure-it-out question?

konichiwa

Lifer
Oct 9, 1999
15,077
2
0
I'm trying to make a TXT file list of all my MP3's. They're all contained on the E: partition. I know in the DOS command line you can do a command and then use > C:\tex.txt to make the output into a text file. So here's what I type:

E:\>DIR /b /o:N /s > C:\mp3list.txt

Those operators are:

/b:bare format (no filesize, etc)
/o:N:sorts alphabetically
/s:includes files in subdirectories

But here's the problem. It outputs all the files in the root E: directory first, and then all the files within the subdiriectories. But I want it to do it like Napster does, where it alphabetizes the ENTIRE list. Does that make any sense at all? It's hard to explain...anyone know how to do this?
 

Nutcase99

Golden Member
Dec 22, 1999
1,639
0
0
Why don't you just use WinAmp to do it? It does it in HTML but its not that hard to change HTML to txt, msg me if you need help figuring it out.

AIM: Nutcase879
 

Nutcase99

Golden Member
Dec 22, 1999
1,639
0
0
It wouldn't though if they are all in the same dir or in one dir and then in Sub dirs you can add them all with about 2 clicks :)
 

konichiwa

Lifer
Oct 9, 1999
15,077
2
0
See if I generate a playlist in winamp and make it into HTML then it doesn't include the directory, only the filename. So if I have an MP3 like:

01 - Runnin' With The Devil.mp3

Then that's all it will display. a DIR listing will display:

E:\Van Halen I\01 - Runnin' With The Devil.mp3
 

perry

Diamond Member
Apr 7, 2000
4,018
1
0
Why wouldn't:

E:\>DIR /b /o:N /s *.mp3 > C:\mp3list.txt

work? Seemed to just work for me.
 

Pretender

Banned
Mar 14, 2000
7,192
0
0
DIR /s always starts with the root directory, then goes thru the subs. The only way to get around this would be to put all the mp3s in 1 directory then make the list.
 

sciencewhiz

Diamond Member
Jun 30, 2000
5,885
8
81
You can't do it directly in dos. What you need to do is import the file in to word or excel, and use that program to sort it.
 

konichiwa

Lifer
Oct 9, 1999
15,077
2
0
It does, except it lists all the root files alphabetically and THEN all the subdirectories and their contents alphabetically. That's not what I want. I want it to output like Napster's library display. I want the root files and the subdirectories alphabeticalized (word?:)) in the same space, not the root files and then the subdirectories. Let me see if I can explain it with an example. This is what Napster does:

3 Doors Down - Kryptonite.mp3 <-- root file
Aerosmith - Unplugged\01 - Hangman Jury.mp3 <-- file in subdir &quot;Aerosmith - Unplugged\&quot;
....

Here's what DIR does:

3 Doors Down - Kryptonite.mp3 <-- root file
38 Special - Hold On Loosely <-- root file
...
ZZ Top - Tush.mp3 <-- root file
...
Aerosmith - Unplugged\01 - Hangman Jury.mp3 <-- file in subdir
...

EDIT:

Okay two people answered my question. So there's no way to do it...*sigh*

Thanks anyway. :)
 

perry

Diamond Member
Apr 7, 2000
4,018
1
0
Ahh. Ok. I misunderstood your first question. Yea, I agree with the other two. No way to do it.