Hello... I have files in the format:
xxxxx_1.tif
xxxxx_2.tif
yyyyy_10.tif
YYYYY_11.tif
zzzzz_100.tif
zzzzz_101.tif
I need all numbers after the _ to be three characters:
xxxxx_001.tif
xxxxx_002.tif
yyyyy_010.tif
YYYYY_011.tif
zzzzz_100.tif
zzzzz_101.tif
Can anyone think of a way I can do this with a vb script? All of my batch file options have failed. I'll have thousands of these files each day.
I'm hoping to find a way to insert a 0 based on these patterns since I only need to change the single and double characters after the _.
rename ?????_?.tif to ?????_00?.tif
rename ?????_??.tif to ?????_0??.tif
Thanks!
Brian
xxxxx_1.tif
xxxxx_2.tif
yyyyy_10.tif
YYYYY_11.tif
zzzzz_100.tif
zzzzz_101.tif
I need all numbers after the _ to be three characters:
xxxxx_001.tif
xxxxx_002.tif
yyyyy_010.tif
YYYYY_011.tif
zzzzz_100.tif
zzzzz_101.tif
Can anyone think of a way I can do this with a vb script? All of my batch file options have failed. I'll have thousands of these files each day.
I'm hoping to find a way to insert a 0 based on these patterns since I only need to change the single and double characters after the _.
rename ?????_?.tif to ?????_00?.tif
rename ?????_??.tif to ?????_0??.tif
Thanks!
Brian