I have some template file in c:\Temp, such as abcMMDD.txt, xyzMMDD.txt, I already use command batch get the current date varible, by fail to copy the file by wildcard. I just want copy those file to c:\report\
set MM=%date:~3,2%
set DD=%date:~0,2%
set MMDD=%MM%%DD%
xcopy c:\Temp\*MMDD.txt "c:\report\*%MMDD%.txt"
I hope the c:\result\abc0908.txt , xyz0908.txt