@APPPATH(<key_path>)
Description
Retrieves the path to a file or folder from the application's configuration (.app) file. Use the Datacap Application Manager to modify the information that is contained in this file. Do not edit the file directly.
Syntax
@APPPATH(key_path)Arguments
key_path Specifies the path through the XML hierarchy to field you want:
- If the field name is unique within the file, you can specify just the field name.
- If the field name is not unique within the file, you must specify the path to the instance you want. For example, you might have multiple workflows. If you do not specify the path, you get the first instance. To obtain the path, move the mouse pointer over the field in the Datacap Application Manager and read the path from the tooltip.
Examples
You can use @APPPATH to retrieve the following information from the application configuration file.
| Field name | Key name | Example | Notes |
|---|---|---|---|
| Application fields | |||
| Batches folder | runtime | @APPPATH(runtime) | (Field name is unique) |
| Export folder | export | @APPPATH(export) | (Field name is unique) |
| Fingerprint folder | fingerprint | @APPPATH(fingerprint) | (Field name is unique) |
| Workflow fields | |||
| Setup DCO | setupdco | @APPPATH(setupdco) | (assumes single workflow) |
| Rules folder | rules | @APPPATH(dco_Workflow1/rules) | (specifies Workflow 1) |
| VScan source folder | vscanimagedir | @APPPATH(vscanimagedir) | (assumes single workflow) |
| Imagefix INI | imagefix | @APPPATH(dco_Workflow2/imagefix) | (specifies Workflow 2) |