Solution: the options are case-sensitive and should be in lowercase! (they were lowercase when I entered them by hand, but in my batchfile they were uppercase).
Sorry guys:)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When entering netpbm commands by hand everything works great.
But when I put the same commands in a batch file, all options are "unrecognized".
C:\> .\BIN\PNMSCALE -XYSIZE 640 480 ORIGINAL.PPM 1>REDUCED.PPM
unrecognized option `-XYSIZE'
I suppose there is something obvious that I forgot, but I have no idea what it might be. :-S
Solution: the options are case-sensitive and should be in lowercase! (they were lowercase when I entered them by hand, but in my batchfile they were uppercase).
Sorry guys:)