XenoGuard Documentation

Add Folder

Actions » Windows » Compression » Add Folder 

The action Add Folder inserts the content of a folder into an existing archive file.

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


The action has the following input parameters:

name Description
Target Archive Path Name
Specifies the path name of the archive file where the file is to be added.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Type
 [Variable, Parameter, Enum]
Path in Archive The relative path of the target folder inside the archive.

Default Value: \

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

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

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


The action returns the following results:

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

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Type 
[Variable, Parameter]
The path name of the file that was added to the archive file.

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

Information If the archived file is not available, a new archive file (.zip or .rar) is created in the specified Target Archive Path Name.

Example 1 (Include folder contents into an existing archived file):

This example adds the contents of a folder into an existing archived file using the value of two local variables, Compressed file path and Source file path, as parameter values. The action in the "Then" branch is executed if the condition is "Passed", otherwise execute the action in the "Else" branch. A text confirmation after adding the files is then output via Message Box.

See other compression operations:

Add File