Xcopy Does Not Copy Attributes for Folders

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

SYMPTOMS

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

CAUSE

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

RESOLUTION

To work around this problem, use either of the following methods:

  • Manually set the attributes for the new folder using Attribe.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.


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