If you are using robocopy to copy from a root drive folder, u may run into a few issues.
- It tries to copy at least 2 system hidden folders:
- Recycle bin on the source drive.
- System Volume Information
- Destination folder becomes system hidden.
1: rem /E -- copy all folders recursively on E:
2: rem /XD -- skip 2 system folders: Recyle Bin and System Volume Information
3: rem /MIR -- mirror delete on destination if source does not have that file any more
4: robocopy E: "F:\Backup\xxxx" /XD e:\$RECYCLE.BIN "e:\System Volume Information" /E /MIR
6: rem unhide and don't make the dest folder a system folder
7: attrib -s -a -h "F:\Backup\xxxx"