spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column50


Using JavaScript in HomeSite 4.0, Part III

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

The ZIPProvider Object's Methods, Part I

Extract(files)Integer

Extracts files from an archive. You can specify a single file, a set of files delimited by line breaks or an entire directory using wildcards. If left an empty string, all files will be extracted. The following line will extracts two files out of the archive:

ZIPProvider.Extract("d:\\yehuda\column50\test1.html" + "\n" +
                    "d:\\yehuda\column50\test2.html");

The function returns a status code that tells whether the commands succeeded or, if failed, what was the problem. Here are the possible codes:

Status CodeError
0Success
10WarningGeneral
30WarningNoZipFile
40WarningFilesSkipped
50WarningEmptyZipFile
100ErrorNoZipFile
110ErrorZipStruct
120ErrorMemory
130ErrorBadCall
140ErrorNothingToDo
150ErrorDiskFull
160ErrorEOF
180ErrorLibInUse
190ErrorUserAbort
200ErrorTestFailed
210ErrorZeroTested
240ErrorDLLNotFound
250ErrorInternalLogic
280ErrorTempFile
290ErrorRead
300ErrorWrite
310ErrorCantCreateFile
350ErrorParentDir
370ErrorNameRepeat
380ErrorLatest
400ErrorDOSError
410ErrorMultidisk
420ErrorWrongDisk
430ErrorMultidiskBadCall
440ErrorCantOpenBinary
450ErrorCantOpenSfxConfig
460ErrorInvalidEventParam
470ErrorCantWriteSfx
490ErrorBinaryVersion
500ErrorNotLicensed
510ErrorCantCreateDir

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Created: October 11, 1999
Revised: October 15, 1999

URL: http://www.webreference.com/js/column50/zipmeth1.html