Robocopy created hidden directory at destination

The directory was created via a mirror of my d drive: Robocopy D:\ "E:\Dad\Backup" /MIR /FFT /Z /XA:H /W:5

It’s been a while since I’ve dealt with this and don’t remember the exact solution I used. But it appears you’re running in to the same issue with Robocopy.

If you copy from a root directory, like D:\ the destination folder will be marked with a hidden and system attribute.

After the operation you can solve this with: attrib -s -h E:\Dad\Backup

Before the operation, you can prevent this by adding the /A-:SH switch to the robocopy command line: Robocopy D:\ "E:\Dad\Backup" /MIR /FFT /Z /XA:H /W:5 /A-:SH

Additionally, if you want to see these folders, you can turn on the option to show hidden files AND to not hide special operating system folders. Or use the dir /a command.


There are Hidden as well as System folders. This is likely a system folder.

Type dir and see if it has a s in it, like this:

d---s- 10/16/2021 9:48 PM Backup

then type attrib -s E:\Dad\Backup to remove the System attribute.