Why is my directory list backwards?
- From: "AndrewF" <andrew@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 17 Nov 2005 13:28:27 -0800
Hi,
This is going to seem like a weird question, but for the life of me I
can't sort it out.
Basically I am using a Directory object which then picks up
Directory.GetDirectories() to recursively pick up all the folders and
go on until I hit the bottom, at which point I pick up the files in
that folder and collectively add it all to a tree view control. The
code works fine...
Now, on my main workstation it all lists out, folders first then files,
if true alphabeticised glory. Looks just like windows explorer as you'd
expect. On my notebook though, exactly the same code and it all works,
except my folders are listed in reverse alphabetic order. I've checked
the code which seems fine and read the SDK files about
Directory.GetDirectories() which doesn't seem to offer an ordering
option by default.
So, I thought, it must be a system thing. Windows Explorer by default
seems to work fine but ou can never really tell as it remembers your
last state. DOS then may hold the key... and so it does. When I do a
"dir" from the command line - all my folders are listed back to front!
Seemingly every folder does this as well...
Does anyone now how to switch this behaviour off??
Kind regards
AndrewF
.
- Follow-Ups:
- Re: Why is my directory list backwards?
- From: Bruce Wood
- Re: Why is my directory list backwards?
- Prev by Date: Re: Creating an error handler for my application
- Next by Date: Re: Setting color of current debugger line
- Previous by thread: Setting color of current debugger line
- Next by thread: Re: Why is my directory list backwards?
- Index(es):
Relevant Pages
|
Loading