lesolutionneur Posted September 16, 2012 Share Posted September 16, 2012 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. Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 17, 2012 Share Posted September 17, 2012 have you installed the 7zip stand-alone command-line .exe? Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
lesolutionneur Posted September 17, 2012 Author Share Posted September 17, 2012 No, I use the dll with the UDF as a wrapper. Link to comment Share on other sites More sharing options...
lesolutionneur Posted September 18, 2012 Author Share Posted September 18, 2012 UP Link to comment Share on other sites More sharing options...
iCode Posted September 18, 2012 Share Posted September 18, 2012 (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 September 18, 2012 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) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now