How to copy a file with permissions in a Win7 system

Source: Internet
Author: User
Tags file permissions

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.