Long Filename

Long Filename

Long filenames (LFN), are Microsoft's way of implementing filenames longer than the 8.3 filename, or short-filename, naming scheme used in Microsoft DOS in their modern FAT and NTFS filesystems. Because these filenames can be longer than an 8.3 filename, they can be more descriptive. Another advantage of this scheme is that it allows for longer extensions common on other operating systems (e.g. .jpeg, .tiff, .html, and .xhtml) rather than specialized shortened names (e.g. .jpg, .tif, .htm, .xht). The first Microsoft Windows operating system to implement long filenames on FAT was Windows NT 3.5 in 1994.

The long filename system allows a maximum length of 255 UTF-16 characters, including spaces and non-alphanumeric characters (excluding the following characters, which have special meaning within the command interpreter or the operating system kernel: \ / : * ? " < > |). This is achieved by chaining up to 20 directory entries of 13 2-byte unicode characters each.

To maintain compatibility with older operating systems, Microsoft formulated a method of generating an 8.3 filename from the long filename (for example, "Microsoft.txt" to "MICROS~1.TXT") and associating it with the file.

For technical details of the implementation, please refer to the File Allocation Table article.

Read more about Long Filename:  Compatibility Issues, VFAT LFN Drivers, Other File Systems

Famous quotes containing the word long:

    I feel no more like a man now than I did in long skirts, unless it be that enjoying more freedom and cutting off the fetters is to be like a man. I suppose in that respect we are more mannish, for we know that in dress, as in all things else, we have been and are slaves, while man in dress and all things else is free.
    Amelia Bloomer (1818–1894)