Skip to main content

[Command]: Copy a Folder to Another Folder and Retain its Permissions


Copy a Folder to Another Folder and Retain its Permissions

Click Start, and then click Run.

In the Open box, type cmd, and then click OK.



Type xcopy source destination /O /X /E /H /K and then press ENTER, where source is the source path for the files to be copied, and destination is the destination path for the files.

Example


xcopy c:\software d:\software-backup/O /X /E /H /K, and then press ENTER, where c:\software is the source folder and d:\software-backup is the destination folder.

Copy structure of a folder only

xcopy source destination /T /E






Popular posts from this blog

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'