Moo_ZipCompress ( sPath; bTemp; bOverwrite );
This function creates/adds to a Zip file.Parameters
| Name | Type | Required | Default | Description |
| sPath | String | Yes | The input file(s) to be compressed. | |
| bTemp | Boolean/String | No | False | If false the ZIP file is created in the same folder as the input file. Can also specify the output file as either a full path or just a filename. |
| bOverwrite | Boolean | No | False | Overwrite existing files within the Zip file if they already exist. |
| bFolderName | Boolean | No | True | Include the folder name when folders are added.. |
Return Value
Returns the path to the created Zip file, or an error code.
Errors
| Error Code | Description |
| Moo_ZipCompress|Err_1 | Invalid number of arguments. |
| Moo_ZipCompress|Err_2 | Invalid source file input. |
| Moo_ZipCompress|Err_3 | Source file doesn't exist. |
| Moo_ZipCompress|Err_4 | Output Zip file already exists. |
| Moo_ZipCompress|Err_5 | Error creating Zip file. |