I'd like to exclude all files matching C:\dir1\*.ext
so I say:
robocopy C:\dir1 C:\dir2 /E /B /MIR /xf C:\dir1\*.ext
According to the documentation this should work:
/xf <FileName>[ ...]
Excludes files that match the specified names or paths. Note that FileName can include wildcard characters (* and ?).
But it results in:
ERROR : Invalid Parameter #16 : "xyz"
How can I exclude based on this pattern? Excluding by directory or by file name pattern is not specific enough.