Maximim number of letter in OS "Long Files Names "

Hossam

Senior member
Mar 4, 2001
291
0
0
Hello ,

i want to know what r the maximum number of letter "file name " in os that support Long Files Names ?


 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I believe almost every filesystem can stand 255 char names. Be carefull on FAT though, since LFNs are hacked on they use clusters to store the LFNs so you lose a little space with every LFN.
 

AndyHui

Administrator Emeritus<br>Elite Member<br>AT FAQ M
Oct 9, 1999
13,141
17
81
255 in FAT32 and NTFS.

MacOS is 31 characters.

As for the FAT32 hack, each additional 13 characters or part thereof after the first 8.3 are stored by the file system as a special directory entry that is interpreted as a name mask over the standard 8.3 file name.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
As for the FAT32 hack, each additional 13 characters or part thereof after the first 8.3 are stored by the file system as a special directory entry that is interpreted as a name mask over the standard 8.3 file name.

Right, it's got all the possible DOS attributes set which isn't possible and makes DOS skip over it (instead of printing an error like it should though...). I was under the belief that this used a cluster for every extra 13 characters, am I wrong?
 

AndyHui

Administrator Emeritus<br>Elite Member<br>AT FAQ M
Oct 9, 1999
13,141
17
81
You are correct. Each directory entry takes up one cluster, regardless of it being a standard directory entry or a LFN entry.