Cannot Access 8.3 Filename from MS-DOS-Based Application

Last reviewed: May 8, 1997
Article ID: Q103072

The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1

SYMPTOMS

From an MS-DOS or 16-bit Windows-based application, you are unable to access a filename on a FAT or NTFS (over the network) partition that has 8 characters before the period and 3 after (8.3 file format).

CAUSE

You created an illegal (under MS-DOS) filename using the Copy command from Command Prompt. On FAT partitions, you can use spaces and other illegal characters. On NTFS partitions, if you use the 8.3 filename format, no MS-DOS-compatible filename is created, even if you use illegal characters.

All 32-bit Windows NT applications, such as Notepad and File Manager are able to access and manipulate these files because they have built-in long filename support. However, these files cannot be accessed by 16-bit MS-DOS or Windows-based applications either from Windows NT, MS-DOS, or Windows 3.1.

Steps to Reproduce Problem

  1. Run Command Prompt from the Main group of Program Manager.

  2. Type the following command:

          copy con "bad name.txt"
    

  3. Type some text and press ENTER.

  4. Press F6 or CTRL+Z.

The resulting file will not be accessible from MS-DOS or 16-bit Windows-based applications.

RESOLUTION

The only workaround is to rename the file using legal characters for MS-DOS from File Manager or Command Prompt.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 3.1 and Windows NT Advanced Server version 3.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: lfn prodnt
Keywords : kbbug3.10 kbtool ntdosap ntfilesys ntutil
Version : 3.1
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.