Shift-1 helped me this code.
I would like to add the date rather than a just adding a 1 to the file name
for /F "tokens=*" %%G in ('dir "%folder%" /A:-D /B') do (
echo F|xcopy "%folder%\%%G" "%folder%\%%~nG1%%~xG" /C /H /R /Y
contained in myfolder
after running the .cmd
the folder would contain
thanks for the help