[x]Blackmoor Vituperative

Monday, 2016-11-28

How to copy a folder and retain its permissions in Windows 10

Filed under: Windows — bblackmoor @ 10:25
  1. Click the Start button.
  2. In the search box, type “command”.
  3. Right-click the “Command Prompt” item, and select “Run as administrator”.
  4. 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.

  5. For example:

    xcopy C:\Users\Public D:\Public /O /X /E /H /K