Building Blocks and Custom Resources

The executable program of the Workspace Control Console is pwrtech.exe. The command-line can be used to process Building Blocks and Custom Resources.

Consider the following when using the command-line options presented on this page:

  • Parameters between angle brackets (<>) need to be replaced with the appropriate values.

  • Parameters between square brackets ([]) are optional.

Building Blocks command-line parameters

The following command-line parameters are available for Building Block actions:

Error levels for scripts

To facilitate these batch scripts, the following error levels are available and are returned in %errorlevel% when an error occurs:

Error level

Description

0

The command line was executed successfully.

1

The file was not specified in the command line.

2

The file was not a valid XML file.

3

The object was not found in the Datastore.

4

Failed to save the Custom Resource in the Datastore.

5

Failed to delete the object or Custom Resource.

6

The /guid has an invalid GUID specified.

7

The object specified with /guid does not exist.

8

The Custom Resource specified with /guid does not exist.

9

Insufficient rights, the caller belongs to an administrative role which does not have modify permissions for the object type or Custom Resources.

10

Required command-line options not specified.

11

The path specified for /path does not exist.

12

Failed to import Building Block via the command line with /passwordfips, because the file name contains a wildcard (* or ? or |).

14

Failed to import Building Block via the command line, because no /passwordfips is provided or the password is incorrect.

15

The file could not be saved.

16

The file has the wrong extension.