Combining Folders and Batch Renaming the Files Inside All

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
3ccentricity
Posts: 25
Joined: 04 Feb 2022 13:46

Combining Folders and Batch Renaming the Files Inside All

Post by 3ccentricity »

Hi,

I have manga/comic chapters separated into folders, ch. 1, ch. 2, etc.. Each chapter folder has images inside named 1,2,3, etc.. I want to combine all the images across all the chapter folders into 1 folder. This would be mean renaming the images in each chapter folder to follow on from the last. For instance if chapter 1 had 10 images each named in order (1,2,3,4,5,6,7,8,9,10), chapter 2's first image would start off at (11) instead of (1). Is there any way to batch rename them like this?

admin
Site Admin
Posts: 64233
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Combining Folders and Batch Renaming the Files Inside All

Post by admin »

The result should be 1.jpg, 2.jpg .... 587.jpg?
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

highend
Posts: 14430
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Combining Folders and Batch Renaming the Files Inside All

Post by highend »

You would just select all files in the ch. 2 dir and use the batch rename function with this pattern:
<#11> (if the new starting number would be 11)...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 64233
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Combining Folders and Batch Renaming the Files Inside All

Post by admin »

Could branch view the whole thing and do it in one go using <#1>.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

3ccentricity
Posts: 25
Joined: 04 Feb 2022 13:46

Re: Combining Folders and Batch Renaming the Files Inside All

Post by 3ccentricity »

admin wrote: 13 Jul 2024 10:32 Could branch view the whole thing and do it in one go using <#1>.
Thankyou, that worked really well. It ordered them by folder sequence, allowing a batch rename and then moving all those images into a new singular folder.

3ccentricity
Posts: 25
Joined: 04 Feb 2022 13:46

Re: Combining Folders and Batch Renaming the Files Inside All

Post by 3ccentricity »

highend wrote: 13 Jul 2024 10:22 You would just select all files in the ch. 2 dir and use the batch rename function with this pattern:
<#11> (if the new starting number would be 11)...
Hi, I'm having a new renaming issue related to this post. I now want the batch rename to include the chapter number, so instead of 1.jpg, 2.jpg.. I want it to be Ch 1-1.jpg Ch 1-2.jpg.. Ch 2-1.jpg, Ch 2-2.jpg.. Is this possible?

highend
Posts: 14430
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Combining Folders and Batch Renaming the Files Inside All

Post by highend »

rtfm "idh_menfile.htm#idh_menfilespecrename";
Special variables
One of my scripts helped you out? Please donate via Paypal

Post Reply