Using JavaScript in HomeSite 4.0, Part III: The ZIPProvider Object's Methods, Part I | WebReference

Using JavaScript in HomeSite 4.0, Part III: The ZIPProvider Object's Methods, Part I


Using JavaScript in HomeSite 4.0, Part III

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

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

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