Home Search

DriveWorks Pro 22
Extract a ZIP file to a given location

Send Feedback

Extract a ZIP file to a given location

Extracts a zip file based on a given zip file name and a target location.

Properties

Property NameDescription
TitleChanges the Title (not the name) of the task.
ZIP File NameThe full path and file name (including extension) of the zip file to extract.
Target LocationTarget location for the zip contents (Leave blank to extract to a folder of the same name in the same location as the zip).
Result ConstantThe name of the constant that the result will be posted to (with or without the DWConstant prefix).

Example

When this Task is added the properties are static. To be able to build rules on a static property see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleExample ResultMeaning
ZIP File Name"C:\MyDownloads\Specs.zip"C:\MyDownloads\Specs.zipThis is the name and full file path of the Zip file that is to be extracted.
Target Location"C:\MyDocuments\ExtractedZip"C:\MyDocuments\ExtractedZipThis is the location where the zipped file will be extracted to.
Result Constant"ReportStatus"ReportStatusThis is the name of the constant that will report information about extracting the Zip file.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success (one of the following occurred)

  • Zip File Name Delete will not be extracted.
  • Zip file has been extracted successfully.

Success with Warnings

  • N/A - should never be fulfilled.

Failed (one of the following occurred)

  • Zip file name cannot be left empty.
  • Zip file not found.
  • Task failed to extract files correctly.
  • General failure - Check the Specification report for more details.