Extracting ALL files with the folder structure

Doubts, help and support about QuickBMS and other game research tools
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Extracting ALL files with the folder structure

Post by NFG »

Hello,

I would like to ask if there is any way to extract all the files from one folder without destroying the folder structure inside, for example:

I have a main folder in which there are multiple folders and files, and in these folders there are another files and folders that are containing another files (files don't have the same extension) and i'd like to extract them all without making a complete mess, and by "mess" i mean that i don't want to extract all those files to one folder cause then i will have no idea which file belongs to which folder.


Structure example:

Original Folder

Main Folder -> Folder1,Folder2,File1,File2

Folder1 -> FolderIn1,File3
FolderIn1 -> files

Folder2 -> FolderIn2,File3
FolderIn2 -> files
------------------------------------------------------------------------
After extraction

Output folder -> Main Folder -> Folder1,Folder2,Folder_File1,Folder_File2

Folder1 -> FolderIn1,Folder_File3
FolderIn1 -> Folder_files -> extracted files
Folder_File3 -> extracted files from file3

Folder2 -> Folder,Folder_File
FolderIn2 -> Folder_files -> extracted files
Folder_File3 -> extracted files from file3

Folder_File1 -> extracted files from file1

Folder_File2 -> extracted files from file2


If there is a way to do it like that then i'd be more than happy cause it would allow to create mods more efficiently
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Extracting ALL files with the folder structure

Post by spiritovod »

@NFG: You probably need -d option of quickbms, it's explained in the documentation in advanced options section.
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Re: Extracting ALL files with the folder structure

Post by NFG »

Okay, looks like problem with folder structure is solved, however i still dont know how to extract every type of extension into these folders. Is there any script that can do that?