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
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


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

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