Command: FolderZip
- Updated2023-02-21
- 2 minute(s) read
Command: FolderZip
Compresses a folder to a ZIP archive.
Input Parameters
FolderZipPath |
Specifies the name of the folder. |
FolderZipName |
Specifies the name of the ZIP archive. |
Return Parameters
| ReturnValue | Returns the value 0 if the function has executed successfully. Returns -2147024809 if the FolderZipPath folder does not exist. Returns the value -2147090424 if the folder where you want to create the ZIP archive does not exist. Returns the value -2147467259 if another error occurred. The return value is a Integer type. |
Example
The following example creates the ZIP archive pack.zip in the folder C:\Myfolder2 if the folders C:\Myfolder1 and C:\Myfolder2 exist.
| VBScript | Python |
Call FolderZip("C:\Myfolder1", "C:\Myfolder2\pack.zip")
Related Topics
Command: DataFileCopy | Command: DataFileDelete | Command: DataFileLstGet | Command: DataFileMove | Command: DataFileRename | Command: DataFileSelDlg | Command: FolderAttrClear | Command: FolderAttrSet | Command: FolderCopy | Command: FolderCreate | Command: FolderDelete | Command: FolderMove | Command: FolderRename | Command: FolderUnzip | Command: PathAddTrailingBackslash | Function: DataFileSize | Function: FileAttrCheck | Function: FileDateGet | Function: FileSize | Function: FilEx | Function: FolderAttrCheck | Function: FolderDateGet | Function: FolderExist | Function: FolderSize

