7, 8, 9, 10, 11...

Asked by Martin Hickethier

i like to rename this files:

a1-10.foo
a1-11.foo
a1-7.foo
a1-8.foo
a1-9.foo

to

a1-07.foo
a1-08.foo
a1-09.foo
a1-10.foo
a1-11.foo

to get them better sorted

how do i get the leading zero into the rename pattern when needed?

Question information

Language:
English Edit question
Status:
Answered
For:
pyRenamer Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dudly Surge (dudesurge) said :
#1

one idea is to "add" the numbers you want then delete the ones you don't
eg.
file8
file9
file10
into
file08
file09
file010
file011
then select 010 and 011 and remove the first "0"
i hope this helps

Revision history for this message
Si Dedman (si-dedman) said :
#2

I'd also be interested in this. Loads of my pictures are format

1
2
3
...
8
9
10

It would be great to have something which could add leading zeroes only if they are needed.
Same for:

01
02
03
...
98
99
100

to add leading zeroes. If something can be added or someone thinks of a clever way, please let us know!

Can you help with this problem?

Provide an answer of your own, or ask Martin Hickethier for more information if necessary.

To post a message you must log in.