Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncements
Discussion Groups
By Brand
BMWChevroletDodgeFordGMHondaLexusMercedes-BenzNissanPeugeotToyotaVolkswagenOther Brands
By Topic
4x4 CarsRVsDrivingMaintenance & RepairCar AudioCollectible Cars
Country Specific
Australian ForumsUK Forums
ArticlesAuto InsuranceBuyingCars & TechnologyMaintenanceMiscellaneousSafety
DMV Resources
Related Topics
MotorcyclesBoatsMore Topics ...

Car Forum / Driving, Maintenance, Tuning / Driving / July 2005

Tip: Looking for answers? Try searching our database.

Question w/ Win2K (file-organisation)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carl Rogers - 30 Jun 2005 19:06 GMT
Hi All,

Over the past five years, I've been happily running Win2K Pro as OS of
choice.  So far so good--but I'm am annoyed w/ one strange flaw.  When
files/folders are arranged "by name", the OS does not list numerals
sequentially.  E.g., let's say I have four files:  "nv-20.jpg", "nv-28.jpg",
"nv-207.jpg" and "nv-117.jpg".

By default, Win2K organises these in the following sequence:

nv-117.jpg
nv-20.jpg
nv-207.jpg
nv-28.jpg

...The sequence I'd prefer (i.e., "correct behaviour model") is:

nv-20.jpg
nv-28.jpg
nv-117.jpg
nv-207.jpg

Interestingly, WinXP seems to use the correct behaviour model, though I have
no desire to use other OS(es) for my website development.  (FYI, I have
several machines running WinXP, Knoppix, Linux Mandrake 8.1 and/or OS X, all
are/will be used for different purposes.)

Is anyone aware of registry-hacks or third-party tools which can solve this
Win2K problem?  Since my image library contains 1,000+ images, a solution
would speed up my search references.  Any advice is appreciated, since I
can't seem to find the right combination of keywords for Google or Yahoo
search!

Cheers,

Carl Rogers
-----------------
Calrog.com Highway-Shield page:  http://hwy-shields.calrog.com
Highway Enthusiast forum:  http://forums.calrog.com
Gary V - 30 Jun 2005 20:59 GMT
> ...The sequence I'd prefer (i.e., "correct behaviour model") is:
>
> nv-20.jpg
> nv-28.jpg
> nv-117.jpg
> nv-207.jpg

Just rename the first two as nv-020 and nv-028 and you'll be all set.
Carl Rogers - 01 Jul 2005 01:33 GMT
Thanks Gary; I'll try that out.
Andrew Tompkins - 01 Jul 2005 17:56 GMT
> Thanks Gary; I'll try that out.

Most OS's store filenames as an alphanumeric representation (ASCII, EBCDIC, etc).
When sorting, the sort algorithm usually sorts based on the position of the numerals
in the string, not the value of the number.  If you use a similar filename structure
for your files in a folder or directory, you can get the filenames to sort correctly
on the numbers by using filenames with the same number of numerals in the same
positions within each filename and applying leading zeroes when needed.  I use this
technique in my stripchart website (both for folder/directory names and filenames) to
sort the files.  Both highway names (I005-CA, I015-CA, I215-CA) and exit numbers for
unique interchange diagram files (CA-003, CA-013, CA-113) get three digits.

Looks like XP has a second sorting algorithm that changes numbers in a filename to a
numerical representation for sorting.

--Andy
--------------------------------------------------
Andrew G. Tompkins
Software Engineer
Beaverton, OR
http://home.comcast.net/~andytom/Highways
--------------------------------------------------
Mark Roberts - 30 Jun 2005 23:58 GMT
Carl Rogers <carl-mtr@DELETETHIS.calrog.com> had written:
| Hi All,
|
[quoted text clipped - 22 lines]
| several machines running WinXP, Knoppix, Linux Mandrake 8.1 and/or OS X, all
| are/will be used for different purposes.)

Win2K appears to be using a standard ASCII collating order.
Actually its behavior appears to be correct; the behavior you want isn't.

Signature

Mark Roberts | "Society is returning to them the respect they deserve."
Oakland, Cal.|  -- Spain's prime minister José Luís Zapatero Rodríguez,
NO HTML MAIL |       on Spain's legalization of same-sex marriage
Permission to archive this article in any form is hereby explicitly denied.

Carl Rogers - 01 Jul 2005 01:33 GMT
Let's remember though, humans are not ASCII collators ;)
Mark Roberts - 01 Jul 2005 04:50 GMT
Carl Rogers <carl-mtr@calrog.com> had written:
| Let's remember though, humans are not ASCII collators ;)

An understanding of the difference between a string comparison and
a numeric comparison should help clarify the point.

Signature

Mark Roberts | "Society is returning to them the respect they deserve."
Oakland, Cal.|  -- Spain's prime minister José Luís Zapatero Rodríguez,
NO HTML MAIL |       on Spain's legalization of same-sex marriage
Permission to archive this article in any form is hereby explicitly denied.

Carl Rogers - 01 Jul 2005 07:01 GMT
> Carl Rogers <carl-mtr@calrog.com> had written:
> | Let's remember though, humans are not ASCII collators ;)
>
> An understanding of the difference between a string comparison and
> a numeric comparison should help clarify the point.

Well, had this information been part of the OS handbook, then it would be
widely understood.  Criticising others for knowledge they do not have is
purely an exploit for "superiority".
Mark Roberts - 02 Jul 2005 03:24 GMT
Carl Rogers <carl-mtr@DELETETHIS.calrog.com> had written:

| > Carl Rogers <carl-mtr@calrog.com> had written:
| > | Let's remember though, humans are not ASCII collators ;)
[quoted text clipped - 5 lines]
| widely understood.  Criticising others for knowledge they do not have is
| purely an exploit for "superiority".

Huh?

If you want to stay ignorant, it's not my problem!

Signature

Mark Roberts | "Society is returning to them the respect they deserve."
Oakland, Cal.|  -- Spain's prime minister José Luís Zapatero Rodríguez,
NO HTML MAIL |       on Spain's legalization of same-sex marriage
Permission to archive this article in any form is hereby explicitly denied.

argatlam_roads@yahoo.com.mx - 02 Jul 2005 13:57 GMT
[Mr. Rogers:]

> Is anyone aware of registry-hacks or third-party tools which can solve this
> Win2K problem?  Since my image library contains 1,000+ images, a solution
> would speed up my search references.  Any advice is appreciated, since I
> can't seem to find the right combination of keywords for Google or Yahoo
> search!

As Mr. Roberts points out, Windows 2000 is sorting the files in correct
A.S.C.I.I. order.  You can force the sort you want by using a batch
file renamer like 'CKRename' to insert zero fills.  It has a "file
mask" feature which allows you to isolate each group of filenames you
want to change according to the number of digits in the "number"
portion of each filename, so the process is very fast and minimizes the
need to rename files individually.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.