Honeybee,

Thanks, I've had a quick look I've not been able to find what I'm looking for please forgive me if it's there and I'm not seeing it.

Here is a link to my post in General PC

This from the original question -

Quote Originally Posted by aconybeare View Post
I've got a for loop in a batch file that loops ".jpg" files and I'd like to change it to find ".jpg" and ".pdf" files.

Is this possible?

Code:
SET counter=0
FOR /r "e:\test\myfiles\" %%X IN (*.jpg) DO (set /a counter+=1)

ECHO Copied %counter% of 5 file(s)
This is what I've managed to come up with -

Quote Originally Posted by aconybeare View Post
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)