Link to home
Create AccountLog in
Avatar of Mario Zio
Mario ZioFlag for Italy

asked on

A batch script to rename a list of images.

Hello,

read here to be able to understand the previous episodes :

https://www.experts-exchange.com/questions/26789497/Script-able-to-generate-and-duplicate-n-times-a-randomly-sequence-of-pictures-starting-and-ending-with-a-number.html

I'm trying to export a list of images from a video,from a starting frame number to an ending frame number. In the screenshot I wanted to start exporting images from br7429.jpg to br7478.jpg. I haven't understood how to do it with VirtualDub. Do you know a way to do it ? If this is not possible,I would like to use VirtualDUB to export images from br0.jpg to br (ending number).jpg and then a batch script to rename all the pictures from br0.jpg / br (ending number).jpg to br7429.jpg to br7478.jpg (in this specific situation).
15-02-2011-23-01-54.jpg
Avatar of dbrunton
dbrunton
Flag of New Zealand image

I've just taken a a look at VirtualDub.

You will have to take the second option.  If you change the Minimum number of digits you will get the numbering starting from 0 and going up to your ending number.

You will then need one of the scripting wizards to make you a batch file to do the converting to the number range you want.

However it might be better for the scripting wizards to leave the Minimum number of digits at 4 so you will end up with the first file as br0000.jpg but the name lengths will be consistent for easy manipulation.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Mario Zio

ASKER

yes,billprew is a good coder.
Avatar of Bill Prew
Bill Prew

Thanks so much, glad that helped.

~bp
Really I haven't tried your code,but I know what it may works without problems. Here I was using an old tecnique to make an animation,now I'm trying to use more sophisticated tecniques.