Simple renumbering files

Support for Windows 10 users and the Microsoft Store package
Post Reply
mpfaff
Posts: 1
Joined: 13 May 2020, 15:30

Simple renumbering files

Post by mpfaff »

I had bought this software as it looked like I could rename files with certain criteria. This is looking like it is specific for movies and such.

I am simply trying to take a name like
Portage Dist Lib PL D4-0
Portage Dist Lib PL D4-1

and make it so I can rename them to something like this

Portage Dist Lib PL 064
Portage Dist Lib PL 065

Just changing the numbering on the end to begin at a specific number and number the rest of the files in that sequence.

It look very complicated in this software and I do not understand how to preform this simple task. If this cannot be accomplished then I would like to ask for a refund.

Thanks,

Mike
User avatar
rednoah
The Source
Posts: 18995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Simple renumbering files

Post by rednoah »

FileBot is indeed not optimized to simple generic rename tasks, it does however support generic renaming, though with a focus on advanced users and advanced use cases:
viewtopic.php?t=2072


e.g. here's a custom format for Plain File Mode that might just do the trick:

Code: Select all

{fn.before('D4')} {(63+i).pad(3)}


If you just need a sequence of file names then you can either generate them in List panel, and then send them over to Rename panel:

Code: Select all

Portage Dist Lib PL {(63+i).pad(3)}

Alternatively, you can also generate file names in Excel or Google Sheets, and then copy & paste them over into the Rename panel.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1027
Joined: 15 May 2014, 16:17

Re: Simple renumbering files

Post by kim »

in other renaming programs you can do something like this:
e.g. remove the last part from filename

Code: Select all

{fn[0..-5]}
Portage Dist Lib PL

then you can add what ever you like e.g.

Code: Select all

{fn[0..-5]}{(63+i).pad(3)}
Portage Dist Lib PL 064

or using regex (Regular expression) https://en.wikipedia.org/wiki/Regular_expression

Code: Select all

{fn.replaceAll(/(.+)(.{5}$)/),'$1 ' + (63+i).pad(3)}
or

Code: Select all

{fn.replaceAll(/(.+)(.....$)/),'$1 ' + (63+i).pad(3)}
or

Code: Select all

{fn.replaceAll(/(.+)(\sD4-\d+$)/),'$1 ' + (63+i).pad(3)}
if there is a pattern ... you can do it ;)
Post Reply