My advice here is to place everything in a BAT file and in "Command or path" you browse to the BAT file. Below is something from an old BAT file I used that you can easily modify to suit your needs.
Code: Select all
"C:\Program Files\ImageMagick-6.9.2-Q16\convert.exe" %1 -colorspace sRGB -resize 755X774 %2
The thing I always check because I am never 100% certain is whether or not to use quotes in the BAT file, because on OSX it is the other way around. As you can see from the example: no quotes in a BAT file, quotes in a shell script (perhaps now I will remember
![Smile :)](./images/smilies/icon_e_smile.gif)
).
And also note that the %1, %2 and %3 in Switch are placeholders with a certain meaning, the numbers do not say anything about the order in which they are used. There could also be additional parameters, either hard-coded or using variables. In BAT files/shell scripts the %number is about the order of the parameters. So, do not think that %1 maps to %1 etc. If you used this as the "Arguments" in "Execute command":
the code in the BAT file would be:
Code: Select all
"C:\Program Files\ImageMagick-6.9.2-Q16\convert.exe" %1 -colorspace %3 -resize 755X774 %2