here is my command
Exclude function is not working with xcopy
@Echo Off
set source=C:\Users\garang\Documents\input_files2\Advisory_Rate
set destination=C:\Users\garang\Documents\input_files2\Advisory_Rate\Archive
xcopy "C:\Users\garang\Documents\input_files2\Advisory_Rate" "C:\Users\garang\Documents\input_files2\Advisory_Rate\Archive" /S /C /Y /EXCLUDE:"C:\Users\garang\Documents\input_files2\Advisory_Rate\Advisory Rate mapping.xlsx"
error:
C:\Users\garang\Documents\input_files2\Advisory_Rate>movefiles
Can't read file: "C:\Users\garang\Documents\input_files2\Advisory_Rate\Advisory Rate mapping.xlsx"
0 File(s) copied
C:\Users\garang\Documents\input_files2\Advisory_Rate>
Here is the reference question, I have abandoned for this question.