HOW TO: Extract multiple archives in their respective folders.

Doubts, help and support about QuickBMS and other game research tools
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

HOW TO: Extract multiple archives in their respective folders.

Post by cyberspeed »

Hello.

I looked around but couldn't find a specific command to my following example.

I have 10 folders, each folder has 4 different archives in it, I only want to extract from each folder a specific archive but to extract in its folder location of each of those 10 folders.
If I use this command at the root of those 10 folders:

Code: Select all

*example.zip

It will ONLY extract those archives that match that name ONLY, while excluding the other 3 archives in each of those 10 folders, which is great, but on second step when asking where to save, it saves them in another folder, how can I prevent that? There has to be a way, I hope? Because when dealing with over 10,000 of files it makes a mess to have them in same folder because it also looses the folder structure.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: HOW TO: Extract multiple archives in their respective folders.

Post by aluigi »

Basically you can't because the output folder is mandatory and I don't remember an option or a work-around to use the same folder of the file in case of multiple files.

So the solution I propose is the following:

Code: Select all

quickbms.exe -F "{}example.zip" -d file.bms c:\input_folder c:\output_folder

-F will filter the input file (you can use *example.zip too, I prefer {} instead of * to avoid possible conflicts).
While the following is the explanation of the -d and -D options:

Code: Select all

-d     automatically create an additional output folder with the name of the
       input folder and file processed, eg. models/mychar/mychar.arc/FILES,
       -d works also if input and output folders are the same (rename folder)
-D     similar to -d but will not create the folder with the filename
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: HOW TO: Extract multiple archives in their respective folders.

Post by cyberspeed »

Hmmm, I will most definitely give them all a try and see what I come up with.

thank you Luigi.

cheers