Jump to content

Alphabetized DIR list of all subdirs of a user share's top-level directory


magic144

Recommended Posts

I have a user share mounted as a Network drive within Win7 (Home Premium, 32-bit), i.e. Z:

 

If I enter the command:

 

Z:\> dir /S /OG /ON topdir1

 

I get the top-level dir (topdir1) files/dirs listed in alphabetical order (grouped by directories first), but the ordering of the subsequent subdirs seems to be all over the place (although files within each subdir are also alphabetically sorted & grouped). Perhaps this is due to the physical dispersement of the actual files/dirs across the real (physical) disks??

 

Yet the unRAID server console 'ls -laR /mnt/user/shareXX/topdir1' command yields fully sorted (nested) results properly.

Not only that, but the GnuWin32 'ls' win32 executable also works similarly - from the Win7 DOS command prompt.

 

Does anybody know why my native 'dir' command behaves this way, and if it is possible to construct a 'dir' command to fully alphabetize my listing (i.e. using only native DOS 'dir')?

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...