Article ID: 323007 - Last Review: October 29, 2007 - Revision: 3.4 HOW TO: Copy a Folder to Another Folder and Retain its Permissions
This article was previously published under Q323007 NoticeThis article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000) is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy (http://support.microsoft.com/lifecycle/) .NoticeThis article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000) is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy (http://support.microsoft.com/lifecycle/) .On This PageSUMMARY
This step-by-step article describes how to copy a folder to another folder and retain its permissions. When you copy or move files and folders by using Windows Explorer, the permissions that are set on the files or folders may change. For example, when you copy a file in an NTFS file system volume or between two NTFS volumes, Windows 2000 treats it as a new file. As a new file, it takes on the permissions of the destination folder, and you become the CREATOR OWNER. NOTE: You must have Write permission for the destination folder to copy files and folders. You can use the Xcopy command with the /O/X/E/H/K switches to copy the files and retain the existing permissions that have been specifically applied to the file or files. These switches have the following effects: /E - Copies folders and subfolders, including empty ones. NOTE: This procedure does not override inherited permissions. When you use the Xcopy command with the /O /X /E /H /K switches to copy the files, the following inherited permissions apply:
/H - Copies hidden and system files also. /K - Copies attributes. Typically, Xcopy resets read-only attributes. /O - Copies file ownership and ACL information. /X - Copies file audit settings (implies /O).
Copy a Folder to Another Folder and Retain its Permissions
ExampleType xcopy c:\olddocs c:\newdocs /O /X /E /H /K, and then press ENTER, where olddocs is the source folder and newdocs is the destination folder.For more information about Xcopy switches, type xcopy /? at the command prompt, and then press ENTER. For additional information about Xcopy switches, click the article number below to view the article in the Microsoft Knowledge Base: 240268
(http://support.microsoft.com/kb/240268/EN-US/
)
COPY, XCOPY, and MOVE Overwrite Functionality Changes in Windows
| Other Resources Other Support Sites
CommunityArticle Translations
|





















Back to the top