Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #372115

Re: OT: Sort directory *entries*

From Don Y <this@is.not.me.com>
Newsgroups sci.electronics.design
Subject Re: OT: Sort directory *entries*
Date 2015-08-08 14:45 -0700
Organization Aioe.org NNTP Server
Message-ID <mq5tab$ho8$1@speranza.aioe.org> (permalink)
References (3 earlier) <279ddad6-1af6-4c37-b1f9-9be637c9d51b@googlegroups.com> <mq2rl5$tba$1@speranza.aioe.org> <7aa9e1ec-c5cb-4026-8e9b-f786a89bf5d4@googlegroups.com> <mq5o9t$373$1@dont-email.me> <2etcsalk427b3uvaqlunv3ujsl066bs68m@4ax.com>

Show all headers | View raw


On 8/8/2015 2:36 PM, upsidedown@downunder.com wrote:

>> Open a command prompt, go to the directory, and type "dir" without any
>> ordering switches (and without any DIRCMD environment variable).  That
>> should show the files in natural order.
>>
>> Unless, of course, MS has fiddled with it in later versions of Windows...
>
> At least on Win XP NTFS and later DIR is treated as DIR /ON, so the
> files are sorted by file name. Try DIR/O-N which should disable any
> sort activity.

No.  -N says "sort in reverse order by name" -- like "ls -r".

All bets are off unless you are dealing with a FATxx filesystem.
Furthermore, even there, you have no guarantee that the next creat()
won't bugger the file order (e.g., if there is an open directory slot
anywhere *before* the last entry that the new object can then occupy)

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

OT:  Sort directory *entries* Don Y <this@is.not.me.com> - 2015-08-07 00:38 -0700
  Re: OT:  Sort directory *entries* David Brown <david.brown@hesbynett.no> - 2015-08-07 10:06 +0200
    Re: OT:  Sort directory *entries* DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-08-07 05:29 -0400
    Re: OT:  Sort directory *entries* Don Y <this@is.not.me.com> - 2015-08-07 09:44 -0700
      Re: OT:  Sort directory *entries* makolber@yahoo.com - 2015-08-07 10:36 -0700
        Re: OT:  Sort directory *entries* Don Y <this@is.not.me.com> - 2015-08-07 10:59 -0700
          Re: OT:  Sort directory *entries* makolber@yahoo.com - 2015-08-07 13:07 -0700
            Re: OT:  Sort directory *entries* Don Y <this@is.not.me.com> - 2015-08-07 13:43 -0700
            Re: OT:  Sort directory *entries* M Philbrook <jamie_ka1lpa@charter.net> - 2015-08-07 18:43 -0400
            Re: OT:  Sort directory *entries* David Brown <david.brown@hesbynett.no> - 2015-08-08 22:21 +0200
              Re: OT:  Sort directory *entries* upsidedown@downunder.com - 2015-08-09 00:36 +0300
                Re: OT:  Sort directory *entries* Don Y <this@is.not.me.com> - 2015-08-08 14:45 -0700
                Re: OT:  Sort directory *entries* jurb6006@gmail.com - 2015-08-15 20:36 -0700
          Re: OT:  Sort directory *entries* Robert Baer <robertbaer@localnet.com> - 2015-08-07 22:12 -0700
            Re: OT:  Sort directory *entries* Don Y <this@is.not.me.com> - 2015-08-07 22:39 -0700
              Re: OT:  Sort directory *entries* David Brown <david.brown@hesbynett.no> - 2015-08-09 13:10 +0200
            Re: OT:  Sort directory *entries* DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-08-08 02:59 -0400
        Re: OT:  Sort directory *entries* whit3rd <whit3rd@gmail.com> - 2015-08-07 13:44 -0700
          Re: OT:  Sort directory *entries* Nobody <nobody@nowhere.invalid> - 2015-08-08 03:11 +0100
            Re: OT:  Sort directory *entries* Jasen Betts <jasen@xnet.co.nz> - 2015-08-08 03:55 +0000
              Re: OT:  Sort directory *entries* upsidedown@downunder.com - 2015-08-08 09:23 +0300
        Re: OT:  Sort directory *entries* Robert Baer <robertbaer@localnet.com> - 2015-08-07 22:11 -0700
      Re: OT:  Sort directory *entries* David Brown <david.brown@hesbynett.no> - 2015-08-08 22:28 +0200
        Re: OT:  Sort directory *entries* Don Y <this@is.not.me.com> - 2015-08-08 14:33 -0700
          Re: OT:  Sort directory *entries* Jasen Betts <jasen@xnet.co.nz> - 2015-08-09 04:15 +0000
          Re: OT:  Sort directory *entries* David Brown <david.brown@hesbynett.no> - 2015-08-09 13:21 +0200
  Re: OT:  Sort directory *entries* Robert Baer <robertbaer@localnet.com> - 2015-08-07 22:04 -0700
    Re: OT:  Sort directory *entries* DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-08-08 02:58 -0400
  Re: OT: Sort directory *entries* Dimitrij Klingbeil <nospam@no-address.com> - 2015-08-15 21:38 +0200
  Re: OT:  Sort directory *entries* Rob <nomail@example.com> - 2015-08-15 20:12 +0000

csiph-web