Converting Filenames from NTFS to FAT (8.3) Convention

ID: q101601

The information in this article applies to:

  - Microsoft Windows NT operating system, version 3.1
  - Microsoft Windows NT Advanced Server, version 3.1

The Windows NT filesystem (NTFS) support filenames up to 255 characters long. In most cases, NTFS also generates an MS-DOS compatible filename in 8.3 (filename.extension) format that allows an MS-DOS-based or 16-bit Windows-based application to access the same files.

NTFS translates a long filename to an 8.3 filename in the following manner:

An exception to the rules above occurs when the NTFS directory name or filename contains space and fewer than eight characters. In this case, NTFS does not create an 8.3 filename. This may cause problems if you attempt to access the file or directory through a network. To work around this situation, substitute an illegal character, such as a "[", for the space and NTFS will create a legal 8.3 filename. Even though this behavior seems inconsistent, it maintains compatibility with MS-DOS. In MS-DOS, a space is considered an illegal character and causes similar problems when it is used in that environment.

The following examples demonstrate how NTFS applies these rules:

a file.doc

   This is not converted because the filename has fewer than 8
   characters and contains a space.

a[file.doc

   This is converted to A_FILE~1.DOC because the filename contains
   illegal characters.

A Long Filename.TXT

   This is converted to ALONGF~1.TXT because the filename contains
   more than 8 characters.

Additional query words: prodnt conversion convert file name lfn
Keywords          : kbother
Version           : 3.1
Platform          : WINDOWS

Last Reviewed: August 13, 1998