1. I can take archives in a specific folder and output them in their own folders all in a "./OUTPUT" folder but I notice that if I have a archive in an "./INPUT" folder that is also in another folder, it will output into the root of the "./OUTPUT" folder. An example of what I have is
Code: Select all
"./quickbms.exe" -d -F "*.FILETYPE" "./SCRIPT.BMS" "./INPUT" "./OUTPUT"
Another explanation using example above is, say I have a archive in the root of "./INPUT" folder and another archive in another folder inside "./INPUT" folder and want it to output to the "./OUTPUT" folder with the same folders and their names instead of all archives being decompressed to the root, how would I be able to do this? I basically want it to recreate folder names inside the "./OUTPUT" folder with wherever the archives are located in "./INPUT" folder.
2. I have a problem with multiple archive types being in the same folder, specifically; I have a BMS script that handles multiple file types under the same compression but I also have file types that aren't compressed the same in the same folder and it tries to access those files, when it does it errors out. Is there a way I can check the first 4 bytes of a file before the script accesses it to check if this file can be decompressed? I cant just specify the file type because there are some that are in the same folder that is compressed differently. If I were able to detect the first 4 bytes of a file before the script is called, I can skip files that aren't compatible.