Skip to menu

Yong Computer

Download - Yong Computer

HOW TO: Copy a Folder to Another Folder and Retain its Permissions


This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy.

 

IN THIS TASK

This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy.

Summary


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

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:
 
  • The security settings that are directly assigned to the files and folders are retained.
  • The security settings that are inherited from the source parent folder are lost.
  • The security settings of the destination folders are inherited.
  • When you move files or folders to FAT volumes, the folders and files lose their NTFS permissions because FAT volumes do not support NTFS permissions.


For more information about inheritance, see the "Changing inherited permissions" topic in Windows Help.
 

Copy a Folder to Another Folder and Retain its Permissions

  1. Click Start, and then click Run. 
  2. In the Open box, type cmd, and then click OK. 
  3. Type xcopy sourcedestination /O /X /E /H /K and then press ENTER, where source is the source path for the files to be copied, and destination is the destination path for the files.

Example

Type 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 COPY, XCOPY, and MOVE Overwrite Functionality Changes in Windows


No. Subject Author Date Views
32 Windows 7 Portable Device Enabling Kit for MTP, Version 7R2 [15] file yongcomputer 2015.12.07 109389
31 Advanced SystemCare 10 Free, Driver Booster 4 Free [4] file yongcomputer 2015.10.12 38626
30 macOS versions and builds included with Mac computers yongcomputer 2017.07.08 7967
29 If you forgot the passcode for your iPhone, iPad, or iPod touch, or your device is disabled yongcomputer 2016.10.20 7441
28 MS Word Viewer, Excel Viewer, PowerPoint Viewer file yongcomputer 2017.01.09 6152
27 Free PDF File Reader Programs yongcomputer 2016.09.01 4466
26 MEMORY_MANAGEMENT Error in Windows 10 yongcomputer 2017.12.11 4272
25 Free Anti-Virus - Roboscan Internet Security 2.5 - Terminated on Feb 2017 file yongcomputer 2015.07.20 3434
24 CCleaner is a free Registry and junk-clearing utility v5.25.5902 (13 Dec 2016) file yongcomputer 2015.07.20 3367
23 ALZip (compression utility), ALSee(image viewer), ALSong (music player) [1] file yongcomputer 2015.05.19 2219
22 Movie Player Free - ALPlayer 2.0 file yongcomputer 2015.07.20 2061
21 Korean Community Newspapers in Brisbane yongcomputer 2016.09.01 1925
20 Uninstaller, Revo Uninstaller, CCleaner - Cleaning Utility for windows yongcomputer 2016.09.01 1564
19 How to creat bootable disk file yongcomputer 2015.07.27 1269
18 ALZip - File Compression tool (from RAR and ZIP to TAR and TGZ and nearly 30 other formats) file yongcomputer 2015.11.05 1267
17 Transfer of iPhone Music, Videos, Contracts, Photo, Apps to iTunes file yongcomputer 2015.12.31 1217
16 전자가족관계등록시스템 필수 설치 화일들 (efamily.scourt.go.kr) [4] file yongcomputer 2015.05.19 918
15 How to recover permanently deleted mail from Gmail yongcomputer 2017.04.18 882
14 Easily manage iPhone without iTunes file yongcomputer 2016.08.02 745
13 SlimCleaner is a lightweight utility for removing all kinds of junk and broken files file yongcomputer 2015.10.12 743
12 Windows8 Start Button file yongcomputer 2015.07.01 733
11 Music Player Alsong file yongcomputer 2015.12.31 726
» Copy a Folder to Another Folder using copy yongcomputer 2019.03.09 536
9 Free AntiVirus - COMODO Internet Security Premium 10 file yongcomputer 2017.02.11 471
8 V3 Lite for Free Anti-Virus Vaccine Korean Version file yongcomputer 2015.05.19 398
7 LG 070 Internet Phone Troubleshooting (엘지 070 인터넷 전화기 문제 해결) yongcomputer 2017.06.01 378
6 APPLE OS X Version & Spec. yongcomputer 2017.07.08 372
5 Most Popular Korean TV Dramas yongcomputer 2015.10.22 242
4 민원시스템에 필요한 화일들 (minwon.go.kr) file yongcomputer 2015.05.19 209
3 Turn On Or Off Auto-Correct Misspelled Words In Windows 10 yongcomputer 2018.06.01 159
2 AVG & AVAST Anti Virus Free [1] file yongcomputer 2015.07.20 125
1 신한은행 인터넷뱅킹 보안프로그램 통합설치 화일 file yongcomputer 2017.03.19 117
Download - Yong Computer