I just tried using Shadowpheonix's script to unzip everything in a specified directory. But I have one question from reviewing the results:
Does the script delete the name of zipped folders?
In other words, my directory had something like this:
Bulletin#24
Case-Hotel_-_Drawings (1).zip
A400-LEVEL-B2-RCP-Rev.2.pdf
A400M-LEVEL-B1-RCP-Rev.2.pdf
A407B.1-ENLARGED-7TH-FLOOR-RCP-DIMENSION-PLAN---EAST-Rev.2.pdf
After unizipping the directory using Shadowpheonix's script, I ended up with this:
Bulletin#24
A400-LEVEL-B2-RCP-Rev.2.pdf
A400M-LEVEL-B1-RCP-Rev.2.pdf
A407B.1-ENLARGED-7TH-FLOOR-RCP-DIMENSION-PLAN---EAST-Rev.2.pdf
In other words, the name of the zipped subfolder that the .pdf files are contained in - Case-Hotel_-_Drawings (1).zip - disappeared.
Is there any way to preserve the name of the zipped folders, so the script would produce a result like this:
Bulletin#24
Case-Hotel_-_Drawings (1)
A400-LEVEL-B2-RCP-Rev.2.pdf
A400M-LEVEL-B1-RCP-Rev.2.pdf
A407B.1-ENLARGED-7TH-FLOOR-RCP-DIMENSION-PLAN---EAST-Rev.2.pdf
In other words, is there any way to preserve the file structure?
My theory is that this very last line of code before the closing curly bracket is the problem:
Instead of FileDelete, maybe I can use regex simply to strip the ".zip" ending off the subfolder name?
Or am I wrong, and is the problem somewhere else in the code?