Sign in to follow this  
Followers 0
lesolutionneur

7zip UDF and folder structure

5 posts in this topic

Hi,

I wanted to extract a zip file keeping the original structure in the zip file but this extracts everything in the output folder instead of keeping the original file structure of the zip.

What I'm doing currently but that doesn't work:

_7ZIPExtract(0, @Scriptdir & "test.zip", @Scriptdir & "\", 1, 0, 1, 0, 0, 0, 0)

Is there any way to keep the structure of the zip when extracting with the 7zip UDF ?

Thank you.

Share this post


Link to post
Share on other sites



have you installed the 7zip stand-alone command-line .exe?


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

No, I use the dll with the UDF as a wrapper.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

just a bit of code i snatched from another program of mine - maybe this will give you some insight? i assume it's the same for the dll

7z.exe x "' & $TempDir & '' & $ProgramInstaller & '" -aoa -o"' & $progInstallDir & '"'

without looking at the 7z help file, i think it's the "x" switch that maintains directory structure

Edited by iCode

FUNCTIONS: WinDock (dock window to screen edge) | EditCtrl_ToggleLineWrap (line/word wrap for AU3 edit control) | SendEX (yet another alternative to Send( ) ) | Spell Checker (Hunspell wrapper) | SentenceCase (capitalize first letter of sentences)

CODE SNIPPITS: Dynamic tab width (set tab control width according to window width)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0