batch file - Launch a .jar multiple times with different parameters -
i've got 2186 jpeg files need convert filetype specific program. unfortunately, i'm bad when comes batch files, here's have far:
java -jar -xmx1024m convert.jar -d2 -h64 -w64 -s untitled_000000.jpeg output_000000.schematic
it takes file untitled_000000.jpeg , converts output_000000.schematic . how go around making convert 2186 files automatically, output_002185.schematic?
thanks!
try this:
main.bat@echo off /l %%a in (0, 1, 2185) (pad.bat "%%a")
and in same directory:
pad.batset var=%1 :loop set var=0%var% if "%var:~5,1%"=="" goto :loop java -jar -xmx1024m convert.jar -d2 -h64 -w64 -s untitled_%var%.jpeg output_%var%.schematic
and should work you. (i have tested it)
batch-file
No comments:
Post a Comment