GEOSoft Posted December 4, 2006 Share Posted December 4, 2006 Have you tried any of this using other 7Zip DLL's? I only install the Command Line version which is 7za.exe and it uses a different DLL than the console version. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
masvil Posted January 17, 2007 Share Posted January 17, 2007 (edited) 7-zip32.dll home page (always updated).Documents in English: http://www.csdinc.co.jp/archiver/lib/7-zip32api-en.zip Edited January 17, 2007 by masvil Link to comment Share on other sites More sharing options...
erebus Posted January 22, 2007 Share Posted January 22, 2007 But what about if one needs progress info while extracting? Such as extracting current file percentage and current archive percentage? Any ideas on this? Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted January 23, 2007 Share Posted January 23, 2007 i might suggest this, (the $dll being a param) Func _SevenZipAdd($sArchive, $sFiles, $iLevel = 6, $sType = "7z", $sCMDLine = "", $hWnd = 0, $dll = "7-zip32.dll") $dll = DllOpen($dll) $result = DllCall($dll, "int", "SevenZip", "hwnd", $hWnd, "str", 'a ' & $sCMDLine & ' -mx' & $iLevel & ' -t' & $sType & ' ' & $sArchive & ' ' & $sFiles, "int", 0) $error = @error DllClose($dll) If $error Then Return 0 Else Return 1 EndIf EndFunc ;==>_SevenZipAdd Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
Ed_Maximized Posted February 11, 2007 Share Posted February 11, 2007 [*]Works with AutoIT 3.2 now (Tested with 3.2.0.1 inside Wine in Linux) I think THIS needs a special post... Can you run autoit programs in Linux? I've heared from others that is impossible... Could you explain a little more? Ed ShapedGUI Creator : Shaped gui the easy way!!!Txt2au3 : the easy way to include text files into your program without fileinstall_GUICreateWithTiledBackground : Put a GIF in the background of your formsSQLite Database BrowserAnimated GIF UDF : Put animations in your GUI's Link to comment Share on other sites More sharing options...
Ed_Maximized Posted February 11, 2007 Share Posted February 11, 2007 There is a mistake in the description of Func _SevenZipAdd... ;=============================================================================== ; ; Description: Adds Files to an Archive/Creates an Archiv ; Parameter(s): $sArchive - The Archive to use ; $sOutDir - Where to extract the files ; $sFilter - Files to extract from the Archive (e.g. *.exe) ; $sCMDLine - Optional Options ; $hWnd - The Window ; Requirement(s): None ; Return Value(s): On Success - Return 1 ; On Failure - Return 0 ; Author(s): JAK-Software.org ; Note(s): Need 7-zip32.dll in the path ; ;=============================================================================== Func _SevenZipAdd($sArchive, $sFiles, $iLevel = 6, $sType = "7z", $sCMDLine = "", $hWnd = 0) $sOutDir - Where to extract the files? $sFilter - Files to extract from the Archive (e.g. *.exe)? A question: How can I add multiple files? How the parameter $sFiles must be passed? Ed ShapedGUI Creator : Shaped gui the easy way!!!Txt2au3 : the easy way to include text files into your program without fileinstall_GUICreateWithTiledBackground : Put a GIF in the background of your formsSQLite Database BrowserAnimated GIF UDF : Put animations in your GUI's Link to comment Share on other sites More sharing options...
GEOSoft Posted February 11, 2007 Share Posted February 11, 2007 7-zip32.dll home page (always updated).Documents in English: http://www.csdinc.co.jp/archiver/lib/7-zip32api-en.zipThanks but again those are for 7-zip.dllI need the info for 7za.dll or 7z.dll George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Jazkal Posted April 18, 2007 Share Posted April 18, 2007 First I want to thank jak for great work on this UDF. I have made some modifications to the file to clear up some function comments that were incorrect (as pointed out by Ed_Maximized). And I modified the script to install the DLL file to the system PATH if it isn't there already. Some people won't like this modification, so don't use it if you don't. If you use the 7zip DLL file in the first post, you will need to rename the file from "7_zip32.dll" to "7-zip32.dll" and add it to your include folder as well as the "SevenZip.au3" file. i.e.: "C:\Program Files\AutoIt3\Include\7-zip32.dll"SevenZip.au3 Link to comment Share on other sites More sharing options...
BillLuvsU Posted April 18, 2007 Share Posted April 18, 2007 Very nice , I was just wishing earlier that I could do somthing like this We've been using autoit for 4 - 5 years, not only locally, but world wide.And the Approved list rules went in affect just recently.Where do you work? [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
payne Posted May 16, 2007 Share Posted May 16, 2007 hi, allmy autoit version is 3.2.4.1I ran this UDF (0.4.1) but fail with following error message -help, pleasePayne Link to comment Share on other sites More sharing options...
payne Posted May 16, 2007 Share Posted May 16, 2007 hi, allmy autoit version is 3.2.4.1I ran this UDF (0.4.1) but fail with following error message -help, pleasePayneadditional informaton: I downgrade to autoit 3.2.2.0 then everything OK. It seem's UDF compatibility issue. Payne Link to comment Share on other sites More sharing options...
raedts Posted June 6, 2007 Share Posted June 6, 2007 Hello, This is a GREAT udf. But i have a issue.. If i want to copy file lets say "C:\test\New Folder\Test.txt" to the archive but i want to remain the subfolder, how do i do that? Example: Copy 3 files: C:\test\bla.txt C:\test\hello.txt C:\test\New Folder\test.txt Stucture of archive.zip \.. bla.txt hello.txt New Folder\test.txt What should i do to copy only that file from that folder to that directory in the archive? Link to comment Share on other sites More sharing options...
jp10558 Posted June 11, 2007 Share Posted June 11, 2007 OK, I'm at a loss here. I have a 7z file I want to extract to a directory. I want the 7z file to maintain the folder structure, and overwrite all files without prompting. I've tried: _SevenZipExtract("proxy.7z","./proxy2",'*', '', 0) and _SevenZipCMD("x proxy.7z -o/proxy2 -aoa",0) both don't seem to do anything. I obviously am missing something. How do I do this? I have #include <SevenZip.au3> and placed SevenZip.au3 in the include directory... I have the dll both in the same directory as the script and in my System32 directory (will this work if I have the script running as an exe, and the dll is in the same directory?). Link to comment Share on other sites More sharing options...
Jazkal Posted June 14, 2007 Share Posted June 14, 2007 hi, allmy autoit version is 3.2.4.1I ran this UDF (0.4.1) but fail with following error message -help, pleasePayneAnyone know how to fix the UDF to work with v3.2.4.9?I really like this UDF, but I'm having to keep multiple branches of autoit, just so I can use it now. Link to comment Share on other sites More sharing options...
littleclown Posted August 1, 2007 Share Posted August 1, 2007 (edited) I have this error too. this is the line: _SevenZipAdd("C:\TAX_12_" & $taxdate & ".zip","\\sof11gmsp02\NRProdST\NR_data\LIST\TAX*.dat", 6 , "zip") This is work many times, before. I didn't change the code. When I start it from editor this is the status line: >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\PrintList\printlist.au3" Edited August 1, 2007 by littleclown Link to comment Share on other sites More sharing options...
littleclown Posted August 1, 2007 Share Posted August 1, 2007 Hello again.I download older version ot autoIT:http://www.autoitscript.com/autoit3/files/...it-v3.2.0.0.zipAnd replace it on my current (last stable).And my script works again!!!Some bug in last version make 7-ZIP not working sometimes, maybe. Link to comment Share on other sites More sharing options...
Buffo Posted August 27, 2007 Share Posted August 27, 2007 For me it's not working with the newset stable 3.2.6.0, too. Will there be a new version of the UDF and/or the dll released? Thx in advance. Regards, Buffo Link to comment Share on other sites More sharing options...
GEOSoft Posted August 27, 2007 Share Posted August 27, 2007 For me it's not working with the newset stable 3.2.6.0, too.Will there be a new version of the UDF and/or the dll released?Thx in advance.Regards,BuffoFor dll updates you will have to go to the 7-zip web site. It gets changed once in a while but it will not be changed with AutoIt in mind.The problems are in the functions of the UDF so maybe someone will get time to update that. It's really up to the author of the UDF who in this case I have not seen around for some time now. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Buffo Posted August 28, 2007 Share Posted August 28, 2007 Thx for your reply. But I use the old version of the dll from the start post of this thread and it works not more. Above of my last post littleclown wrote that it will work with an older version of AutoIt. Imho the problem is AutoIt. I hope that someone can release an updated version because I need it for a script Regards, Buffo Link to comment Share on other sites More sharing options...
awrog Posted September 12, 2007 Share Posted September 12, 2007 Buffo, Indeed, the problem lies with AutoIt This is a real show-stopper, I hope a bug-fix/workaround will be released. AWRog 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