for %f in ("c:\users\jtl999\foo_*.jpg") do call convert_files.bat "%~ff"
For each file in the indicated set, call the batch file, passing as a parameter the full path to the file
The syntax is for usage from command line. To use this in a batch file: Change the parameters of for command so that the percent sign is doubled. %f
should be %%f
and %~f
should be %%~f