On Sat, 04 May 2013 10:37:20 -0700, BeeJ <
nos...@spamnot.com> wrote:
>regarding the 8.3 conversion.
>I do not expect to have to use that conversion but when you talk about
>other systems do you mean unix for example.
>
>Will the 8.3 conversion be ok if the file is copied to a NAS or from
>Win 7 PC to Win XP PC?
>
I probably shouldn't have even brought it up. But since we are there
... <g>
The "8.3 conversion" is purely an O/S thing. You can not *do* the
conversion - it is done for you. And when examined in the context of
the over-all possible platforms and/or utilities that may be involved
can get quite complex. Add to that, there have been subtle differences
changes across the evolution of Windows platform (and to some extent
possible configurations - ie, registry settings).
For example, with earlier O/Ss (FAT) that started allowing long
filenames, the longer filename was sort of a hack - the 'real'
filename was a generated short 8.3 - the long name an artifact.
Starting with Windows 2000 (NTFS) the long name became the 'real'
name, and the short name the artifact. (And it was possible to
turn-off automatic short-names for specific NTFS volumes.)
Here is one example where mix of long and short can be trouble.
Say in the Finance folder on Windows 98 BoxA you have the files
Accounts For 1985.dat (Accoun~1.dat)
Accounts For 1986.dat (Accoun~2.dat)
In the Finance folder on Windows XP BoxB you have ...
Accounts For Harry.dat (Accoun~1.dat)
Accounts For Tom.dat (Accoun~2.dat)
Now copy the files from BoxA to BoxB. Depending on media it might be
an adventure.
To simulate a 16-bit or non-longfilename-aware utility. Type COMMAND
and DIR in DOSPrompt window.
Ten years ago the sites were full of problems and gotchas with various
utilities, wire, and applications, but it has all pretty much sorted
itself out by now. In general just ignore the "8.3 conversion" -
accept it's there if you need one, otherwise fortget they or the
convention ever existed. <g>
>Thank you for the information. As you indicated the max number seems
>to be different where ever I look and that is why i am thinking of
>settling on 253.
>
I have no documentation but I've always guessed the change from 255 to
260 came with the addition of "https://" as a "volume" signature.
(five extra over "C:\"). Also you will note the docs usually describe
260 characters as a *PATH* limit, and 255 as the *filename* limit.
Windows has always had a four-segmented view of filepathnames.
as in -> <Volume> <Path> <filename> <extension>
>I will post my code if you want to look at it.
>Right now I set max path length to be 253 - 12. 12 from 8.3 minimum
>length filename. I error out if the path name is over 253 or I cannot
>get a unique filename since right now I do not know what else to do.
>I am not using the conversion, just shortening the basename length by
>truncating.
>I cannot control the subfolders that a user might set up therefore I
>cannot control the pathname length.
>
When I was working with a company that often had extreme hierarchies,
long names and amazing volumes - we settled on a standard much lower -
132 characters in fact. (The width of fan-fold paper.) Anything
longer and sooner or later we hit a snag.
>Dose the converted 8.3 filename contain control or extended characters?
No. The first time Windows does is remove all non-alpha (or non-digit)
characters from the name. As the name is in Unicode there can actually
be any number of strange characters - the conversion removes them as
well.