How to copy files with permissions in Win7 system

  
The file permissions of the Win7 system are much stricter than the previous xp. We didn't change much when copying ordinary files, but when we want to copy a file with permissions and want to keep the permissions settings of the file. How to do it?
Step 1: Open the Start menu and type "ldd;cmd" in the search bar. After seeing the cmd program above the column, right click on it and click on Run as administrator in the right-click menu.

▲Run CMD with administrator privileges
Step 2: Suppose we want to copy the C:abc folder with permissions to the D:abc folder, at the pop-up command prompt In the window, enter the "xcopy C:abc D:abc /E /H /K /X /Y) command. Then, the program will ask the user if the destination is a file name or a directory name. If the user wants to copy the contents of the entire folder, press the D key on the keyboard; if it is a single file, press the F key on the keyboard, and finally press the Enter key again to confirm the copy operation with permission.

▲Use XCOPY command to copy
XCOPY command in detail
XCOPY is an extension of COPY. You can copy the specified directory with file and directory structure. Instructions for use: /E: Copy directory And subdirectories, including empty; /F: display full source and target file names when copying; /K: copy attributes. Normal Xcopy will reset the read-only property; /X: copy file audit settings; /Y: copy file audit settings.
Copyright © Windows knowledge All Rights Reserved