Previous Topic: The continue StatementNext Topic: Include Common Resources in CA Process Automation Scripts


Specify System Paths in CA Process Automation Expressions

Calculations generally accept either UNIX or Microsoft Windows paths. The UNIX path works for locations on both UNIX and Microsoft Windows host systems. For example:

Process.Path = "/tmp/files/myfile"

The preceding example specifies the location on the current drive for a Microsoft Windows host or the Root for a UNIX host. Specify a network path as follows:

Process.NetPath = “//myhost/tmp/files/myfile.txt”

Include the drive specification in a path for a Microsoft Windows system as follows:

Process.Path = "C:/tmp/files/myfile.txt"

If a working directory (such as C:\tmp) is specified for a Microsoft Windows process, specify a path within the working directory without any leading slash character, as follows:

Process.Subdir = "files/myfile.txt"

If you use a Microsoft Windows path in a calculation, verify that you escape the backslash character so that the interpreter correctly evaluates it as a literal character, as follows:

Process.Path = "C:\\tmp\\files\\myfile.fm"