- Click the Start button.
- In the search box, type “command”.
- Right-click the “Command Prompt” item, and select “Run as administrator”.
- In the command prompt that opens, type
xcopy sourcepath destinationpath /O /X /E /H /K
and then press ENTER, where sourcepath is the source path for the files to be copied, and destinationpath is the destination path for the files.
- For example:
xcopy C:\Users\Public D:\Public /O /X /E /H /K
Comments Off on How to copy a folder and retain its permissions in Windows 10