XenoGuard Documentation

Pack

Actions » Windows » Compression » Pack 

The action Pack stores the contents of a directory into a single archive file. To ensure the security of the compressed file, a password can be set upon the creation of the archive file.


[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. Open the Compression node, select the Pack action.

Parameters:

The action has the following input parameters:


name Description
Target Archive Path Name
Specifies the path name of the targeted archive file.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Type
 [Variable, Parameter, Enum]
Source Directory Path
Specifies the path of the directory to be compressed.

Allowed Context Scope [Fixed, Local, Global]
Allowed Context Type [Variable, Parameter, Enum]
Password
The set password to encrypt the archive file. 

Allowed Context Scopes
[Fixed, Local Global]
Allowed Context Type [Variable, Parameter, Enum]

Results:

The action returns the following results:


name
description
File Count The total number of files included in the archive file.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Type 
[Variable, Parameter] 
Files
The list of files that were added to the archive file.

Allowed Context Scope [Fixed, Local, Global]
Allowed Context Type [Variable, Parameter]

Example 1 (Create .rar file with a password):

This example compresses the files from a specified folder as a .rar file and sets the value of the two local variables, Compressed file path and Source file path as the parameter valueThe Result File Count after creating the compressed file is output via Message Box.


Example 2 (Pack media files to desktop):

This example creates a zip file with the parameter value for the Source Directory Path and Target Archive Path Name from two local variables, MediaPath and TargetZipFile, respectively.  The Result File Count after creating the compressed file is output via Message Box.

See other compression operations:

Unpack
Add File
Add Folder