XenoGuard Documentation

Add File

Actions » Windows » Compression » Add File 

The action Add File inserts a content file into an existing archive file.


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

Parameters:

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 Path Name
Specifies the path name of the source file to be added to the archive.

Allowed Context Scope [Fixed, Local, Global]
Allowed Context Type [Variable, Parameter, Enum]
Password
The password used 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
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 (Insert a file into an existing archived file):

This example adds a file 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 file is then output via Message Box.


See other compression operations:

Pack
Unpack
Add Folder