Add CBR/CBZ files to new folders with the same name but without the numbers?

Hi there!

I have a folder full of mixed CBR/CBZ files (comics) and they are named like this:

Absolute flash 001
Absolute flash 002
Absolute flash 003
Absolute flash 004
Absolute Superman 001
Absolute Superman 002
Absolute Superman 003
Absolute Superman 004
Batgirl 001
Batgirl 002
Batgirl 003
etc etc

Is it possible to generate multiple folders with only the name like 'Absolute flash' and put all those 001 t/m 004 files automatically in it?
The same goes for all the other comics..
Do I have to use a script or does AR has better methods??

PS I checked the forum, but couldn't find something similar.. If there is, I'm sorry!

Thanks!
Hi pindakaas,

No need to be sorry, bud, we're here to help!

No script needed, as long as all your files have numbers that begin with "0". You'll want to use the MOVE batch mode (top right [EDIT: Sorry, brain fart, it's TOP LEFT! End Edit] above the files list). Default is "Batch mode: Rename"; set it to "Move". To the right of the Batch mode field a new field will appear that says "Output folder:"; set that to

<Substr:1:' 0'>

(It's important you use apostrophes around the space-plus-zero or this may not work).

Click on "Options / Columns", then move the "New path" column into your active columns and position it so you can preview where your files will end up, then drag your files into the files list. That should do what you need.

Hit us back if you need help, or if something unexpected is about to happen. :) Oh, if you want to save this you'll need to have at least one method in the method list, just make sure it's not active so you don't change your filenames.

Best,
DF
Reply to #1:
I have not been aware of this file format for comic books. I would like to add better support for this file format, like extracting the cover image as a file image preview and extracting metadata information, such as the title and number of pages. I know I can easily add support for CBZ, but CBR might be more complicated and take more time. Can you send me a sample comic book in CBZ format? It would help a lot. You can find my email under the Support menu item.
Reply to #2:

Wow, thank you very much for this detailed tutorial! I will try it when I'm home!
Reply to #3:

Sure no problem! Would you like the CBZ or the CBR? You're post seemed like you want the opposite right?
Reply to #5:
I would love having one of each if possible. CBZ files are based on ZIP, which Advanced Renamer already has support for, becuase DOCX is also based on ZIP. CBR is based on RAR, which isn't supported right now, but might be doable.
Reply to #6:
I send you a CBR_CBZ file through a file-sharing application, because it's quite big. (90.93MB)
Please keep up the good work!
Reply to #2:
Hi Delta,

Thank you for helping me out, this works like charm!

Only a couple errors that I get with the following files
Aliens - What If... 001 (2024)
Aliens - What If... 002 (2024)
Aliens - What If... 003 (2024)

It generates a folder 'Aliens - What If' but it doesn't put them in automatically..?
The error is unknown.

Thanks for checking!
Reply to #8:

Hello again, pindakaas,

I'm not sure what the problem is. I got the same result when I used three periods, but not when I used Alt+0133 (a single character composed of 3 dots). Try this:

Load all the files with "..." in a new instance of ARen. Add a replace method and put this in:

Replace: ...
(3 periods)
Replace with: …
(Alt+0133, horizontal ellipsis character)
Apply to: Name

Run the batch and then load the files with the new names into the previous instance of ARen. See if they are moved then. That *should* work. :)

Best,
DF
Reply to #9:

Thanks Delta!