You are currently offline, waiting for your internet to reconnect

Problems Using the XCOPY Command and Long Filenames

This article was previously published under Q134768
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
SYMPTOMS
When you use the XCOPY command, files with long filenames may not becopied.
CAUSE
If the "Prevent MS-DOS-based programs from detecting Windows" option isenabled for the MS-DOS prompt, the XCOPY command does not copy files withlong filenames.

Also, long filename support is not enabled in MS-DOS mode, Safe mode, orCommand Prompt Only mode. Note that no MS-DOS command will move a file witha long filename in MS-DOS mode.
RESOLUTION
If the "Prevent MS-DOS-based programs from detecting Windows" option isenabled 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 acommand prompt, support for long filenames is not enabled.
Properties

Article ID: 134768 - Last Review: 11/15/2006 17:20:30 - Revision: 1.1

  • Microsoft Windows 95
  • KB134768
Feedback