I'm looking for a little help creating a batch rename script in windows
I have a folder of images, numbered sequentially by 3, ie.
and so on
What i'm aiming to do is copy and rename each one twice so that it makes up the missing images after it, to make up the full image sequence, so that
test_01.001.tif is copied twice and those copies renamed to:
test_01.002.tif and test_01.003.tif
And so on for the rest of the image sequence (goes up to 200)
Any help much appreciated, thanks!
Try this:
@echo off
setlocal EnableDelayedExpansion
for /F "tokens=1-3 delims=." %%a in ('dir /B /A-D *.*.tif') do (
set /A new1=1%%b+1, new2=new1+1
copy "%%a.%%b.%%c" "%%a.!new1:~1!.%%c"
copy "%%a.%%b.%%c" "%%a.!new2:~1!.%%c"
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With