Jump to content
Sign in to follow this  

7zip UDF and folder structure

Recommended Posts


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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...