title: create loop in batch for multiple export with ImageMagick
body: <p>Im trying to make a batch file that process multiple image files.</p>
  
  <p>The files are named P_1316_0001.png P_1316_0002.png P_1316_0003.png etc..
  LETs sqy P_1316 is VARSESSION)
  thanks to the ImageMagick program i can convert an image directly with batch.</p>
  
  <p>Basically what i want to do is :</p>
  
  <p>Create a variable that would increment until there is no more file to convert in the folder. Comvert the file from png to jpg (convert %VARSESSION%<em>%i%.png %VARSESSION%</em>%i%.jpg) assuming that i is 0001</p>
  
  <p>Well i hope you can help me.
  i thank you</p>
  
  <p>Daniel</p>