How to rename files with 2 streams of finite numbers

Post any Bulk Rename Utility support requirements here. Open to all registered users.

How to rename files with 2 streams of finite numbers

Postby Zero01 » Wed Jul 05, 2017 2:43 pm

Hi,

I have various files (mainly image files) I would like to rename with two separate integers in the filename, where for instance a whole bunch of .bmp files would become 0x0.bmp. 0x1.bmp... up to say 0x10.bmp, then more files in the same folder would be 1x0.bmp, 1x1.bmp, 1x2.bmp.... 1x10.bmp... until the last set of files are 10x0.bmp, 10x1.bmp, 10x2.bmp.... 10x10.bmp.
So i'm wondering if i could do this all in one hit so to speak, perhaps using the Numbering option with the Mode "Pre. + Suff." and what else would I have to check/uncheck (tick/untick) etc... given that I've just downloaded this obviously marvelous software but am having trouble figuring it out. Thanks. :)

EDIT: the original files would have various different names but would have to be completely re-named i.e. no part of the original name in the new filename(s).
Zero01
 
Posts: 3
Joined: Wed Jul 05, 2017 2:30 pm

Re: How to rename files with 2 streams of finite numbers

Postby Admin » Thu Jul 06, 2017 1:54 am

You could do it in Javascript (section 12) in 1 pass. Javascript requires a commercial license. thanks
Admin
Site Admin
 
Posts: 1464
Joined: Tue Mar 08, 2005 8:39 pm

Re: How to rename files with 2 streams of finite numbers

Postby Zero01 » Thu Jul 06, 2017 8:42 am

OK, thanks for the reply - why would I need a commercial license when I'm not a commercial entity? .. and as I'm not a programmer who can write or help write the syntax for me?
Zero01
 
Posts: 3
Joined: Wed Jul 05, 2017 2:30 pm

Re: How to rename files with 2 streams of finite numbers

Postby Admin » Thu Jul 06, 2017 8:54 am

Hello, try this script

Code: Select all
newName = (~~(counter / 10)+1) + "x" + counter % 10;


You can see the preview of the renames after you select all the files in the folder (and optionally subfolders).

If you like the script and want to use it, a commercial license can be bought from here:
http://www.bulkrenameutility.co.uk/Buy.php

thanks
Admin
Site Admin
 
Posts: 1464
Joined: Tue Mar 08, 2005 8:39 pm

Re: How to rename files with 2 streams of finite numbers

Postby Zero01 » Thu Jul 06, 2017 9:10 am

Yes that works (although it all should include "0" as the lowest value) so that's good to know. Well given that this is just for joining together pictures to form a larger image (via using a plugin) and it's not a pressing thing, just something for a hobby (art/image manipulation) I'll wait until I can save up enough pennies..... thanks again for the help!
Zero01
 
Posts: 3
Joined: Wed Jul 05, 2017 2:30 pm

Re: How to rename files with 2 streams of finite numbers

Postby Admin » Thu Jul 06, 2017 9:11 am

No worries, Javascript functionality is only supported under a commercial license.
Admin
Site Admin
 
Posts: 1464
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support


cron