COMMAND.COM Parses Long Filenames to 8.3 Standard

Last reviewed: August 30, 1996
Article ID: Q126672
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

When you copy a file to a file whose long filename contains a plus sign (+) at an MS-DOS command prompt in Windows 95, COMMAND.COM parses the long filename into an MS-DOS 8.3 standard filename. For example, if you type

   copy vxd__.ini vxd++.ini

the destination file is actually named INI.

This behavior occurs whether you type the command at an MS-DOS command prompt in Windows 95 or you boot the computer in the previous version of MS- DOS installed on the computer and then type the command.

RESOLUTION

Place the last argument on the command line in quotation marks to use the long filename. For example, type

   copy vxd__.ini "vxd++.ini"

to create a destination file called VXD++.INI.

STATUS

This behavior is by design.

MORE INFORMATION

If you do not use quotation marks around the long filename, the filename is parsed by COMMAND.COM, and COMMAND.COM sees the plus sign as a filename separator. For example, typing

   copy a+b c

copies the files A and B together into a single file called C.

Typing

   copy "a+b" c

copies the file A+B to a file called C.


KBCategory: kbusage kbui
KBSubcategory: wpp95 win95
Additional reference words: 95


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: August 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.