I want to include the number of the previous week at the end of the name of the file when copying a file to a different folder with a scrip in a batch file.
I'm trying the following>
echo f | xcopy /f /y "\\Mypath\MyFile.xlsb" "\\Mypath\MyFile WK"%WEEK%".xlsb"
But the result I'm getting is \Mypath\MyFile WK.xlsb
Desire result is \Mypath\MyFile WK12.xlsb
Thank you so much