KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q134768: Problems Using the XCOPY Command and Long Filenames

Article: Q134768
Product(s): Microsoft Windows 95.x Retail Product
Version(s): 
Operating System(s): 
Keyword(s): 
Last Modified: 17-DEC-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Windows 95 
-------------------------------------------------------------------------------

SYMPTOMS
========

When you use the XCOPY command, files with long filenames may not be copied.

CAUSE
=====

If the "Prevent MS-DOS-based programs from detecting Windows" option is enabled
for the MS-DOS prompt, the XCOPY command does not copy files with long
filenames.

Also, long filename support is not enabled in MS-DOS mode, Safe mode, or Command
Prompt Only mode. Note that no MS-DOS command will move a file with a long
filename in MS-DOS mode.

RESOLUTION
==========

If the "Prevent MS-DOS-based programs from detecting Windows" option is enabled
for the MS-DOS prompt, follow these steps to disable it:

1. Use the right mouse button to click the MS-DOS Prompt icon, and then click
  Properties on the menu that appears.

2. On the Program tab, click the Advanced button.

3. Click the "Prevent MS-DOS-based programs from detecting Windows" check box to
  clear it.

4. Click OK.

MORE INFORMATION
================

Do not manipulate long filenames outside of Windows 95. When you boot to a
command prompt, support for long filenames is not enabled.

======================================================================
Keywords          :  
Technology        : kbWin95search kbZNotKeyword3

=============================================================================

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.

Copyright Microsoft Corporation 1986-2002.