Increase counter written inside bat file every time it runs
Posted: 31 Oct 2011 10:45
Hi, I have a bat file which after launch converts one picture from sequence (using nconvert) and then closes. At the beginning of bat file there is picture number sets to variable and then it uses in other places of this bat file.
How can I increase this number and write it down it bat file everytime it launches? Is there a possibility to replace exactly sting in file, or may be by using some other file where this number stores.
Code: Select all
SET PictureNumber=123
nconvert -overwrite -out png "part04 %PictureNumber%.bmp"
How can I increase this number and write it down it bat file everytime it launches? Is there a possibility to replace exactly sting in file, or may be by using some other file where this number stores.