Sign in to follow this  
Followers 0
Bouni

Script abort after extract Files via 7-zip.dll

3 posts in this topic

#1 ·  Posted (edited)

Hello,

First excuse my bad english, i'm from Germany muttley

I try to extract a .zip File, and it works fine until the unzip process is complete.

Then the Autoit Script aborts and a Windows error Box appears.

I think it dont make sense to post a picture because ist in German.

If i click "dont send" the box disappears and the script is closed.

But all files are correctly extracted to my choosen destination folder ?!

This is the code for extracting the zip file, ifound it in the Autoit.com Forum

Func _SevenZipExtract($sArchive, $sOutDir = ".", $sFilter = '*', $sCMDLine = '', $hWnd = 0)
    $dll = DllOpen("7-zip32.dll")
    DllCall($dll, "int", "SevenZip", "hwnd", $hWnd, "str", 'x ' & $sCMDLine & ' -o' & $sOutDir & ' ' & $sArchive & ' ' & $sFilter, "int", 0)
    $error = @error
    DllClose($dll)
    If $error Then
        Return 0
    Else
        Return 1
    EndIf
EndFunc

This is how i call the Function

_SevenZipExtract("data\d_3000E.zip","c:\","","-hide","")

The 7-zip.dll is in the same directory as the .au3 file (W:\), the d_3000E.zip file is in the subfolder W:\data\d_3000E.zip.

So i hope someone can told me how i can fix that error :)

I although attached the 7-zip.dll file i use.

7-zip32.dll

Greatings from Germany :(

Bouni

Edited by Bouni

Share this post


Link to post
Share on other sites



What is the error you receive? Feel free to add a screenshot, there are people from all over the world on this forum. Ich spreche ein bisschen Deutsch. muttley


Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
Share on other sites

LUCKY i wanna learn german. lol as Airwolf mentioned it would be a good idea to post a screenshot.


[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

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