OScript API/Built-in Package Index |
The Zip package provides services for compressing and decompressing files. The major functionalities offered in the Zip Package are the following:
Unknown error constant .
File not found error constant.
The input file for Decompress is not a file error constant.
The output archive file for Compress does not have write permission error constant.
Success return constant.
Compress inFilename to an archive file outFilename, using Zip32 format if forceZip64 is FALSE, Zip64 otherwise. inFilename can be a valid file or directory
Decompress archive file,inFilename, to directory, outDirname.
Unknown error constant.
File not found error constant.
The input file for Decompress() is not a file error constant.
The output archive file for Compress() does not have write permission error constant .
Success return constant.
Compress file or directory, inFilename, to an archive file, outFilename, using Zip32 format if forceZip64 is FALSE, Zip64 otherwise.
Name of target archive file.
Name of source file or directory to be compressed.
TRUE to compress inFilename using Zip64 format, FALSE for Zip32. The default is TRUE.
An Integer indicating the return status. Possible values are:
Result | Meaing |
---|---|
OK | Compression successful |
FILENOTFOUND | inFilename does not exist |
NOWRITEPERMISSION | outFilename does not have write permission |
ERROR | any other errors |
Decompress an archive file, inFilename, to directory, outDirname.
Name of target directory where decompression will occur. If outDirname does not exist then it will be created.
Name of source archive file to be decompressed.
An Integer indicating the return status. Possible values are:
Result | Meaing |
---|---|
OK | Decompression was successful |
FILENOTFOUND | inFilename does not exist |
ERROR | any other errors |
Copyright © 2023 OpenText Corporation. All rights reserved. |