This question already has an answer here:
I have 400gb to transfer from my internal drive to an external one. It's a complex hierarchy made of over 60 000 files and folders, with long file names. While creating those files is not a problem for Windows 7's Explorer, copying them is. I get an error, in the middle of the transfer, saying that the file name is too long.
I tried the following command:
xcopy d:\* e:\ \e
which works... except it doesn't copy the hidden files. But when I try:
xcopy d:\* e:\ \e \h
it seems the \e parameter is ignored and only the files from the root folder are copied.