Page 1 of 1

basic dir option

Posted: 16 Nov 2010 16:26
by dwilbank
A basic dir question.

Or maybe not...?

I'm wanting to create a list of all the contents of all the subdirectories in a drive.
I want the subdirectories to list in alphabetical order, along with their files
I type this:

dir /b /s /o:n

And what I get is the subdirectories scattered in whatever order they please, while the files inside are listed in alphabetical order.

For example...
The contents of folder "Music" are listed before the contents of folder "Books"

Help?

I've tried switching the order of the switches every way possible...

Re: basic dir option

Posted: 16 Nov 2010 18:02
by amel27

Code: Select all

dir /b/s|sort

Re: basic dir option

Posted: 16 Nov 2010 18:10
by dwilbank
it works!

thanks!

Re: basic dir option

Posted: 22 Nov 2010 01:09
by brethallweg
i would have asked the same question but thanks. my problem is solved.



________________________


Blendtec Total BlenderĀ