Microsoft KB Archive/133351

From BetaArchive Wiki
Knowledge Base


Xcopy Does Not Copy Attributes for Folders

Article ID: 133351

Article Last Modified on 1/19/2007



APPLIES TO

  • Microsoft Windows 95
  • Microsoft Windows 98 Standard Edition



This article was previously published under Q133351

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 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.



Additional query words: 98

Keywords: kbprb KB133351