The Win7 system's file permissions are much stricter than previous XP, and we didn't change much when copying normal files, but how do we do when we want to copy a file with permissions and want to keep the file's permission settings?
Step One: Open the Start menu and enter "cmd" in the search field. See the CMD program above the column, click it with the right mouse button, and in the right key menu to find an administrator to run.
▲ Run cmd with administrator privileges
Step two: Suppose we want to copy c:abc this privileged folder into the D:abc folder, enter the "xcopy C:abc d:abc/e/h/k/x/y" directive in the pop-up Command Prompt window, and then the program asks the user if the destination is a filename or directory name. If the user wants to copy the contents of the entire folder, press the D key on the keyboard, and if it is a single file, press the F key on the keyboard, and then press ENTER again to confirm, and then you can start with the permission copy operation.
▲ Copy using xcopy command
xcopy Command Detailed introduction
xcopy is a copy extension that allows you to copy a specified directory file and directory structure, using instructions for parameters:/e: Copy directories and subdirectories, including empty;/F: Displays the full source and destination file names when replicating;/k: Copying properties. The generic xcopy resets the read-only property;/x: Copy file audit settings;/y: Copy file audit settings.