Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer 1

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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