XCOPY transfer for copying hidden folders as well as hidden files

I am trying to get XCOPY to copy the entire directory tree and all its files, however one of the directory paths contains a hidden folder, and although you can use / h parm to specify the copy of hidden files, it does not seem to be related to hidden folders. I was in all the docs for XCOPY, and it looks like they don't have hidden folders. But maybe someone knows differently?

`xcopy c:\profiles c:\aprofiles /r /e /h /v /y 

All of the above works fine, except for hidden folders. I believe that I could hide hidden folders to make them not hidden, but there are several hundred of them.

+4
source share
2 answers

According to @xanatos, it copies hidden folders in Windows 7.

I could not get it to copy hidden folders in Windows 2003 Server, yes, even using the / h switch. Hidden files, yes, but not hidden folders.

Weird

+1
source

Try adding /s./e to take care of this, but it doesn't seem to. I just tested this with / s and it gave me the hidden user profile folders as well as the entire contents of each of them.

0
source

All Articles