Long Filename Creates an MS-DOS Volume Label (125019)
The information in this article applies to:
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0
- Microsoft MS-DOS operating system 5.0
- Microsoft MS-DOS operating system 5.0a
- Microsoft MS-DOS operating system 6.0
- Microsoft MS-DOS operating system 6.2
- Microsoft MS-DOS operating system 6.21
- Microsoft MS-DOS operating system 6.22
This article was previously published under Q125019 SYMPTOMS
After saving a file with a long filename to the root directory of an
unlabeled FAT-formatted drive, you see an unexpected volume label
when you reboot under MS-DOS.
For example, if you save a file as NEWTESTFILE.TXT on a file allocation
table (FAT) partition, Windows NT creates NEWTESTFILE.TXT and NEWTES~1.TXT.
If you boot MS-DOS, the DIR *.TXT command displays:
Volume in drive C is BX
Volume Serial Number is 1CC3-3E96
Directory of C:\
NEWTES~1 TXT 11,438 01-16-95 6:28p
1 file(s) 11,438 bytes
NOTE: The volume label is BX.
CAUSE
This situation occurs due to the new Windows NT version 3.5 long filename
design for FAT-formatted drives. When you create a long filename under
Windows NT, the FAT file system creates one file but stores both the long
filename and short filename in the directory. One directory entry is used
for short file names, and one or more directory entries are used to
store long filenames. NOTE: For more information on how Windows NT creates short filenames, see
article 101601 in the Microsoft Knowledge Base.
WORKAROUND
To work around this situation, do not use long filenames when you write
files to the root directory of FAT-formatted drives, or turn off the option to use long filenames.
To turn off long filename support under Windows NT version 3.5: WARNING: Using Registry Editor incorrectly can cause serious, system-
wide problems that may require you to reinstall Windows NT to correct
them. Microsoft cannot guarantee that any problems resulting from the
use of Registry Editor can be solved. Use this tool at your own risk. - Run Registry Editor (REGEDT32.EXE).
- From the HKEY_LOCAL_MACHINE subtree, go to the following key:
SYSTEM\CurrentControlSet\Control\FileSystem
- Select Win31FileSystem.
- From the Edit menu choose DWORD.
- Press 1 and then choose OK.
- Shutdown and restart Windows NT.
NOTE: Changing this value does not change the file structure.
Modification Type: | Major | Last Reviewed: | 12/5/2003 |
---|
Keywords: | KB125019 |
---|
|