Exclude only some files with the same name when copying using robocopy
You must include the full path (including the drive) to the file to exclude. Relative paths won't work.
This works:
robocopy folder1 destination /E /XF "c:\somedir\another dir\folder1\help.txt"
This doesn't:
robocopy folder1 destination /E /XF "folder1\help.txt"
Nor does this:
robocopy folder1 destination /E /XF ".\folder1\help.txt"