#1 2016-01-20 18:14

dennisqdw
Member
Registered: 2016-01-20
Posts: 3

Change numbering to start at a higher number

I'm sure there's a more technical way to describe this. I have about 6000 files numbered filename000000 through filename006000, but I'd like to change their names so they go from filename000240 through filename006240. I can't seem to find that as an option, and I would have no idea how to write a script that would do that. Can someone help me out here? Thanx in advance. --ds

Offline

#2 2016-01-20 21:54

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Change numbering to start at a higher number

There is no need for a script, this should be possible to accomplish with standard rules.

For example, follow these steps:
1) Enable "Natural sorting algorithm" in the Settings.
2) Sort by the filename.
3) Remove existing index (i.e. 000000 - 006000)
4) Use Serialize rule to add new index starting from 240 and padded to 6 digits.

Offline

#3 2016-01-20 23:09

dennisqdw
Member
Registered: 2016-01-20
Posts: 3

Re: Change numbering to start at a higher number

Thank-you for the information. I think that I have added the rules correctly, and indeed the new name list looks correct. However, I get a warning that says "found 5097 invalid filename(s)! 5097 of which conflict of which conflict with existing filepath(s)." (I actually only have 5097 files not 6000), and the exclamation point symbol. But since the new name list looks correct should I ignore the warning?

Offline

#4 2016-01-21 10:40

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Change numbering to start at a higher number

You shouldn't ignore the validation warning.

It basically tells you that when you will try to rename all these files, most of the target file names will be already taken by existing files.

For example:
filename000000 -> filename000240 (already exists)
filename000001 -> filename000241 (already exists)

You can either insert a dummy character to new file names (e.g. insert "_" as prefix) and later remove it, or rename all these files to a new folder by inserting a folder component in front of file names (e.g. insert "Temp\" as prefix).

Offline

#5 2016-01-21 17:21

dennisqdw
Member
Registered: 2016-01-20
Posts: 3

Re: Change numbering to start at a higher number

Thanx, I thought of your first suggestion as I was going to sleep last night, and indeed as you suggested it worked perfectly. Thanx again. --ds

Offline

Board footer

Powered by FluxBB