home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / info / ntkb / ntkb.exe / Q101 / 6 / 01.TXT < prev    next >
Encoding:
Text File  |  1993-11-16  |  4.0 KB  |  100 lines

  1. DOCUMENT:Q101601  04-NOV-1993  [W_NT]
  2. TITLE   :INF: Converting Filenames from NTFS to FAT (8.3) Convention
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8.  
  9. ----------------------------------------------------------------------
  10. The information in this article applies to:
  11.  
  12.   - Microsoft Windows NT operating system, version 3.1
  13.   - Microsoft Windows NT Advanced Server, version 3.1
  14. ----------------------------------------------------------------------
  15.  
  16. The Windows NT filesystem (NTFS) support filenames up to 255
  17. characters long. In most cases, NTFS also generates an MS-DOS
  18. compatible filename in 8.3 (filename.extension) format that allows an
  19. MS-DOS-based or 16-bit Windows-based application to access the same
  20. files.
  21.  
  22. NTFS translates a long filename to an 8.3 filename in the following
  23. manner:
  24.  
  25.  - NTFS deletes any illegal characters from the long filename and
  26.    removes any spaces. The resulting filename must be a letter or a
  27.    number and it must not contain the following illegal characters:
  28.  
  29.       . " / \ [ ] : ; = ,
  30.  
  31.    If the filename contains any of these characters, unexpected
  32.    results may occur. The resulting filename cannot contain any
  33.    spaces.
  34.  
  35.  - Because an 8.3 filename can contain only one period (.), NTFS
  36.    removes additional periods from the filename if valid, non-space
  37.    characters follow the final period (see Example 1 below).
  38.    Otherwise, NTFS ignores the final period and uses the second to
  39.    last period (see Example 2 below).
  40.  
  41.    Example 1: This is a really long file name.123.456.789.txt 
  42.    converts to THISIS~1.TXT
  43.  
  44.    Example 2: This is a really long file name.123.456.789.
  45.    converts to THISIS1.789
  46.  
  47.  - NTFS truncates the filename, if necessary, to six characters and
  48.    appends a tilde (~) and a digit. For example, each unique filename
  49.    created ends with "~1". Duplicate filenames end with "~2", "~3",
  50.    and so on.
  51.  
  52.  - NTFS truncates the filename extension to three or fewer characters.
  53.  
  54.  - NTFS translates all characters in the filename and extension to
  55.    uppercase. (File Manager displays filenames in lowercase.)
  56.  
  57. An exception to the rules above occurs when the NTFS directory name or
  58. filename contains space and fewer than eight characters. In this case,
  59. NTFS does not create an 8.3 filename. This may cause problems if you
  60. attempt to access the file or directory through a network. To work
  61. around this situation, substitute a legal character, such as a "[",
  62. for the space and NTFS creates a legal 8.3 filename. Even though this
  63. behavior seems inconsistent, it maintains compatibility with MS-DOS.
  64. In MS-DOS, a space is considered a legal character and causes similar
  65. problems when it is used in that environment.
  66.  
  67. The following examples demonstrate how NTFS applies these rules:
  68.  
  69. a file.doc
  70.  
  71.    This is not converted because the filename has fewer than 8
  72.    characters and contains a space.
  73.  
  74. a[file.doc
  75.  
  76.    This is converted to A[FILE~1.DOC because the filename contains
  77.    legal characters.
  78.  
  79. A Long File Name.TXT
  80.  
  81.    This is converted to ALONGF~1.TXT because the filename contains
  82.    more than 8 characters.
  83.  
  84. Additional reference words: 3.10 conversion convert name
  85.  
  86. =============================================================================
  87.  
  88. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  89. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  90. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  91. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  92. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  93. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  94. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  95. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  96. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  97. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  98. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  99.  
  100. Copyright Microsoft Corporation 1993.