Sign in to follow this  
Followers 0
Greenhorn

_ZipPlugin.au3 help needed

2 posts in this topic

#1 ·  Posted (edited)

Hi, I have trouble with using the Au3Zip.dll plugin.

I can't handle files with a size of 0 bytes.

After _ZipUnPack has unpacked the 0 byte file it returns with a success value !

I can't delete them by using _ZipDeleteItem.

But the List function will recognize it ...

#include-once
#include <Array.au3>
#Include '_ZipPlugin.au3'

$szZipFile = @DesktopDir & '\SciTE4AutoIt3.zip'
$szDestDir = @DesktopDir & '\install\SciTE2\'

$hPluginDll = PluginOpen('Au3Zip.dll')
;~ $aZipList = _ZipList2Array($szZipFile)
;~ _ArrayDisplay($aZipList)
$vResult = _ZipDeleteFile($szZipFile,'api\au3.user.calltips.api')
_ZipClose($szZipFile)
ConsoleWrite(_ZipFormatMessage($ZR_RECENT) & @CRLF)
$aZipList = _ZipList2Array($szZipFile)
_ArrayDisplay($aZipList)
;~ $vResult = _ZipUnZip($szZipFile, $szDestDir)
;~ ConsoleWrite(_ZipFormatMessage($ZR_RECENT))

PluginClose($hPluginDll)
ExitoÝ÷ Øù^jÇ¢é]²nr­«b)²­ë.۲إ)zz-¢é]!ìm­§-¶°^m'"LNºÚ·|â§öÓ©ñ··1«yéᢹÄÓ+Ê0¢}ý·
+ZºÚ"µÍÚ[ÛYK[ÛÙBÚ[ÛYH Ð^K]LÉÝÂÒ[ÛYH ÌÎN×ÖYÚ[]LÉÌÎNÂÌÍÜÞ[HHÚÝÜ   [È ÌÎNÉÌLÔØÚUM]]Ò]Ë   ÌÎNÂÌÍÜÞÝHÚÝÜ    [È ÌÎNÉÌLÚ[Ý[    ÌLÔØÚULÌLÉÌÎNÂÌÍÚYÚ[HYÚ[Ü[   ÌÎNÐ]LÖ ÌÎNÊBÌÍØVÝHÖÝ^J    ÌÍÜÞ[JBÐ^QÜ^J ÌÍØVÝ
BÜ ÌÍÚHHÈPÝ[
    ÌÍØVÝ
KLB ÌÍÝÝ[HÖ[][J    ÌÍÜÞ[K  ÌÍØVÝÉÌÍÚWVÌK  ÌÍÜÞÝBÛÛÛÛUÜ]JÖÜX]YÜØYÙJ ÌÍÖÔPÑS
H   [ÈÔB^ß   ÌÍÝÝ[HÖ[]Q[J   ÌÍÜÞ[K  ÌÎNØIÌLØ]LËÙØ[ËIÌÎNÊBÖÛÜÙJ  ÌÍÜÞ[JBÛÛÛÛUÜ]JÖÜX]YÜØYÙJ ÌÍÖÔPÑS
H   [ÈÔBß    ÌÍÝÝ[HÖ[
    ÌÍÜÞ[K  ÌÍÜÞÝBßÛÛÛÛUÜ]JÖÜX]YÜØYÙJ   ÌÍÖÔPÑS
H   [ÈÔBYÚ[ÛÜÙJ   ÌÍÚYÚ[
B^]

But it returns the success message code ... oO

Edited by Greenhorn

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

OK,

this works ... :D

#include-once
#Include '_ZipPlugin.au3'

$szZipFile = @DesktopDir & '\SciTE4AutoIt3.zip'
$szDestDir = @DesktopDir & '\install\SciTE\'
If Not FileExists($szDestDir) Then DirCreate($szDestDir)

$hPluginDll = PluginOpen('Au3Zip.dll')

$vResult = _ZipDeleteFile($szZipFile,'api/au3.user.calltips.api')
;~ ConsoleWrite(_ZipFormatMessage($ZR_RECENT) & @CRLF)
$vResult = _ZipUnZip($szZipFile, $szDestDir)
ConsoleWrite(_ZipFormatMessage($ZR_RECENT) & @CRLF)
_ZipClose($szZipFile)

PluginClose($hPluginDll)
Exit

But I have to know the filename of the 0 byte file ...

Greetz

Greenhorn

EDIT:

Just another question:

Is in AutoIt $sString = 'some string' a NULL terminated string in C style (char szString[] = 'some string') or is it a C++ string library type ... ???

Edited by Greenhorn

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