Jump to content
Sign in to follow this  
mpcluever

Problems with Zip.au3 UDF

Recommended Posts

mpcluever

Been using the zip UDF by torels for a while now, but in the last week it just hangs and does nothing. Very basic script doesn't work.

#include <Zip.au3>
_Zip_Create("C:\asdf.zip")

Anyone else having this problem?

Share this post


Link to post
Share on other sites
BinaryBrother

If your running Vista, try #RequireAdmin . Otherwise, I would make sure the UDF is as it should be, maybe download it again, and replace the old one, your syntax looks correct otherwise.

Share this post


Link to post
Share on other sites
mpcluever

I should have specified that I'm running XP, fresh install of autoit and the zip.au3 UDF. Tested on 2 computers with the same result. Script runs forever with no result.

Share this post


Link to post
Share on other sites
BinaryBrother

I looked at the latest version, and he has some stuff in the head of the file that doesn't need to be there... I dunno why... Tell me what this does...

_Zip_Create("C:\asdf.zip")

Func _Zip_Create($hFilename)
    $hFp = FileOpen($hFilename, 26)
    $sString = Chr(80) & Chr(75) & Chr(5) & Chr(6) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0)
    FileWrite($hFp, $sString)
    If @error Then Return SetError(1,0,0)
    FileClose($hFp)
    
    While Not FileExists($hFilename)
        Sleep(10)
    Wend
    Return $hFilename
EndFunc   ;==>_Zip_Create

P.S. Don't include the UDF

Edited by BinaryBrother

Share this post


Link to post
Share on other sites
torels

that creates the header

:D

it works for me...

I'll take a better look and see if there are some problems


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites
torels

Ok

I found the problem and I fixed it

it was some code I had put in the udf for testing purposes that stopped everything else

now it works

I apologize for the problems this created


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites
mpcluever

Working now. Thanks so much for fixing that. I really appreciate the work you're doing!

Share this post


Link to post
Share on other sites
torels

thanks :D


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites
torels

thanks

btw... i didn't mean it as offensive :D


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.