I have three different file extensions that are used with a command line program. The syntax of this program is program.exe file1.bm file1.pal file1.ppm.
It takes file1.bm and file1.pal and converts them into the ppm file.
I've tried using for %%A in (.bm .pal .ppm) do call program.exe %%A, but it won't work because %%A can't represent all three extensions.
How do I create a batch file using FOR (or an alternative) to fill in the required commands for the above syntax?
Thanks
(*.bm *.pal *.ppm)you were searching for files without names. That is legal but Explorer won't let you create them. If using a path you must specify the path before each filename.(C:\*.bm C:\*.pal C:\*.ppm). It works with thediranddelcommands too.