Greenhorn Posted April 15, 2008 Posted April 15, 2008 (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 April 15, 2008 by Greenhorn
Greenhorn Posted April 15, 2008 Author Posted April 15, 2008 (edited) OK,this works ... #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) ExitBut I have to know the filename of the 0 byte file ...GreetzGreenhornEDIT: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 April 15, 2008 by Greenhorn
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