DIAdem API Reference

Command: FolderUnzip

  • Updated2023-02-21
  • 2 minute(s) read

Display all  Hide all

Unzips a ZIP archive to a folder.

ReturnValue = FolderUnzip(FolderZipName, FolderZipPath)

Input Parameters

FolderZipName Specifies the name of the ZIP archive.
FolderZipPath Specifies the name of the folder.

Return Parameters

ReturnValue Returns the value 0 if the function has executed successfully. Returns the value -2147024809 if the ZIP archive FolderZipName does not exist. Returns -2147090424 if the FolderZipPath folder does not exist. Returns the value -2147467259 if another error occurred. The return value is a Integer type.

Example

The following example unpacks the ZIP archive C:\Myfolder1\pack.zip to the folder C:\Myfolder2.

VBScriptPython

 

Call FolderUnZip("C:\Myfolder1\pack.zip", "C:\Myfolder2")

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: FolderZip | Command: PathAddTrailingBackslash | Function: DataFileSize | Function: FileAttrCheck | Function: FileDateGet | Function: FileSize | Function: FilEx | Function: FolderAttrCheck | Function: FolderDateGet | Function: FolderExist | Function: FolderSize