forger Posted April 11, 2006 Share Posted April 11, 2006 Is it possible through a dll call to use xp's zip feature to extract a zip file? with no user interaction if possible. Link to comment Share on other sites More sharing options...
Valuater Posted April 11, 2006 Share Posted April 11, 2006 maybe thishttp://www.autoitscript.com/forum/index.ph...pic=21004&st=0#8) Link to comment Share on other sites More sharing options...
forger Posted April 11, 2006 Author Share Posted April 11, 2006 That's for creating a zip file, right? I already found that That's how actually this idea was born Link to comment Share on other sites More sharing options...
Valuater Posted April 11, 2006 Share Posted April 11, 2006 maybehttp://www.autoitscript.com/forum/index.ph...opic=17727&hl=#8) Link to comment Share on other sites More sharing options...
Djé Posted May 25, 2006 Share Posted May 25, 2006 (edited) Following the same pattern as in http://www.autoitscript.com/forum/index.ph...pic=21004&st=0#, you could use something similar to:Local $zipFile = "C:\test.zip" Local $Destination = "C:\test" Local $oShell = ObjCreate('Shell.Application') If @error or not IsObj($oShell) Then exit ;something went @#{[[~&^ç! Local $oFolder = $oShell.NameSpace($Destination) If @error or not IsObj($oFolder) Then exit ;something went @#{[[~&^ç! Local $zback = RegRead("HKLM\SOFTWARE\Classes\.zip", "") ;Backup the .zip file handler If @error = 1 Then $zback = -1 RegWrite("HKLM\SOFTWARE\Classes\.zip", "", "REG_SZ", "CompressedFolder");Let's recall to windows that zips are just zips Local $oZip = $oShell.NameSpace($zipFile) If @error or not IsObj($oZip) Then exit ;something went @#{[[~&^ç! Local $oItems = $oZip.Items() If @error or not IsObj($oItems) Then exit ;something went @#{[[~&^ç! or .zip is empty For $o in $oItems ;copy all the files If Not IsObj($oFolder.ParseName($o.Name)) Then $oFolder.CopyHere($o); only the files not already existing Next If $zback = -1 Then RegDelete("HKLM\SOFTWARE\Classes\.zip") Else RegWrite("HKLM\SOFTWARE\Classes\.zip", "", "REG_SZ", $zback); restore the .zip file handler EndIf Edited May 25, 2006 by Djé 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