Rename multiple folders of files but reset numbering for each folder?

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Post Reply
d4rk0n3
Posts: 16
Joined: Sun May 26, 2013 8:04 am

Rename multiple folders of files but reset numbering for each folder?

Post by d4rk0n3 » Wed Apr 24, 2019 2:15 pm

Having a large number of photo sets
Example:

[Folders]
Flowers Set 1
Flowers Set 2
Flowers Set 3

Use find *. to find all the files that reside in each set folder, do <Folder name> ###

Now to the question, this will order all files to be numbered in order, but i was wondering if it is possible to reset the numbering to 0 for each folder?

So instead of the filenames becoming
Flowers Set 1/Flowers Set 1 001.jpg
Flowers Set 1/Flowers Set 1 002.jpg
Flowers Set 1/Flowers Set 1 003.jpg
Flowers Set 2/Flowers Set 2 004.jpg
Flowers Set 2/Flowers Set 2 005.jpg
Flowers Set 2/Flowers Set 2 006.jpg
Flowers Set 3/Flowers Set 3 007.jpg
Flowers Set 3/Flowers Set 3 008.jpg
Flowers Set 3/Flowers Set 3 009.jpg

It becomes:
Flowers Set 1/Flowers Set 1 001.jpg
Flowers Set 1/Flowers Set 1 002.jpg
Flowers Set 1/Flowers Set 1 003.jpg
Flowers Set 2/Flowers Set 2 001.jpg
Flowers Set 2/Flowers Set 2 002.jpg
Flowers Set 2/Flowers Set 2 003.jpg
Flowers Set 3/Flowers Set 3 001.jpg
Flowers Set 3/Flowers Set 3 002.jpg
Flowers Set 3/Flowers Set 3 003.jpg

Is this at all possible or am i going at it the wrong way?

User avatar
xnview
Author of XnView
Posts: 31737
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Rename multiple folders of files but reset numbering for each folder?

Post by xnview » Thu Apr 25, 2019 7:06 am

currently it's not possible
Pierre.

d4rk0n3
Posts: 16
Joined: Sun May 26, 2013 8:04 am

Re: Rename multiple folders of files but reset numbering for each folder?

Post by d4rk0n3 » Fri Apr 26, 2019 4:57 pm

thanks for the reply and for clearing it up.

Post Reply