可以使用带 /O /X /E /H /K /C 开关的 Xcopy 命令复制文件并保留已明确应用于这些文件的现有权限。将一个文件夹复制到另一个文件夹中并保留其权限1. 单击开始,然后单击运行。2. 在打开框中,键入 cmd,然后单击确定。3. 键入 xcopy sourcedestination /O /X /E /H /K ,然后按 Enter,其中 source 是要复制的文件的源路径,destination 是这些文件的目标路径。
/O Copies file ownership and ACL information. /X Copies file audit settings (implies /O). /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T. /H Copies hidden and system files also. /C Continues copying even if errors occur. /K Copies attributes. Normal Xcopy will reset read-only attributes.
转载于:https://www.cnblogs.com/LearnSap/archive/2009/08/12/1544300.html
相关资源:NTFS权限备份和恢复工具