I'm trying to copy a folder on my internal hard drive to my external hard drive using robocopy with the following command:

robocopy "source folder" "destination folder" *.* /E /DCOPY:T /COPYALL /LOG:"log folder/log.log" ATTRIB -S -H "destination folder"

after running the command, the process stops immediately and I get this error in my log file:

"ERROR : Invalid Parameter #10 : "-H" "

I want to remove the hidden and system attributes from all my folders and subfolders I'm copying. I'm using version XP026 of robocopy

link|improve this question

80% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Looking at this Robocopy syntax, Robocopy supplies parameters to do this itself (/A-:SH), so you should try those:

robocopy "source folder" "destination folder" *.* /E /DCOPY:T /COPYALL /LOG:"log folder/log.log" /A-:SH
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.