Batch files: easy way of iterating over arguments

Here’s the ease way of iterating over argument list passed to batch files (got it from stackoverlow topic). Used it to invoke ImageMagic’s commands that involve their own elaborate interpretation of % operator. rem im.bat@echo offsetlocal enableDelayedExpansionset argCount=0for %%x in (%*) do set /A argCount+=1set /a arg=0for /l %%x in (1, 1, %argCount%) do ( […]