Xcopy Does Not Copy Attributes for Folders

Article translations Article translations
Article ID: 133351 - View products that this article applies to.
This article was previously published under Q133351
Expand all | Collapse all


When you use Xcopy to copy a folder, the source folder's attributes are not applied to the new folder.


Xcopy does not have the ability to copy attributes for folders.


To work around this problem, use either of the following methods:
  • Manually set the attributes for the new folder using Attrib.exe at an MS-DOS prompt. For example, the following command sets a folder's read-only attribute:

    attrib +r <foldername>
  • Manually set the attributes for the folder using Windows Explorer. To do so, follow these steps:

    1. Start Windows Explorer.
    2. Use the right mouse button to click the new folder, then click Properties on the menu that appears.
    3. Click the attributes you want to set.
    4. Click OK.
  • Use "xcopy /K" to indicate that file and folder attributes should be propagated to the target files and folders.

    NOTE: This method requires Microsoft Windows 95 OEM Service Release 2 (OSR2) or later.


Article ID: 133351 - Last Review: January 19, 2007 - Revision: 1.2
  • Microsoft Windows 95
  • Microsoft Windows 98 Standard Edition
kbprb KB133351

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com