by XDK
30. January 2015 06:46
Solution:
xcopy "<Source Folder>" "<Target Folder>" /O /X /E /H /K
/X - Copies file audit settings and file ownership and ACL information.
/H - Copies hidden and system files.
/E - Copies directories and sub directories, including empty ones.
/V - Verifies each new file.
/D - Copies files changed on or after the specified date (D:m-d-y).If no date is given, copies only those files whose source time is newer than the destination time.
/Y - Suppresses prompting to confirm you want to overwrite an existing destination file.
/K - Copies attributes. Typically, Xcopy resets read-only attributes
/O - Copies file ownership and ACL information