As a workaround I've applied the following which works but I was hoping for a cleaner solution.
Code:SET counter=0 FOR /r "e:\test\myfiles\" %%X IN (*.jpg) DO (set /a counter+=1) FOR /r "e:\test\myfiles\" %%X IN (*.pdf) DO (set /a counter+=1) ECHO Copied %counter% file(s)




Reply With Quote