Copy Files and Folders in Windows and Preserve NTFS Attributes

When we need to copy files and folders in Windows while need to maintain its file system attributes, there is a handy utility which is included in Windows (especially the rather outdated Windows) which is called xcopy. The command is as simple as:

xcopy [sourcefolder] [destinationfolder] /X /H /E /V /Y

The explanation for the parameters is:

/X – Copies file audit settings and file ownership and ACL information.
/H – Copies hidden and system files.
/E – Copies directories and subdirectories, including empty ones.
/V – Verifies each new file.
/Y – Suppresses prompting to confirm you want to overwrite an existing destination file.

Credit to: PhilEddies (http://www.geekshangout.com/content/using-xcopy-copy-files-and-folders-and-keeping-ntfs-permissions)

Copy Files and Folders in Windows and Preserve NTFS Attributes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s