xcopy "c:\" "d:\" /h/i/c/k/e/r/y
Use above command: xcopy “source” “destination” /?and one of this key listed.
In this command data will be copied from c:\ to D:\, even folders and system files as well. Here’s what the flags do:
/h copies hidden and system files also
/i if destination does not exist and copying more than one file, assume that destination must be a directory
/c continue copying even if error occurs
/k copies attributes
/e copies directories and subdirectories, including empty ones
/r overwrites read-only files
/y suppress prompting to confirm whether you want to overwrite a file
You can see a list of flags by running xcopy /?