Process Designer : Process Designer : Process Designer : Process Designer Model Tools : Parse Path and Compose Path
 

Parse Path and Compose Path

The Parse Path and Compose Path processes allow for breaking an input file path into its component pieces (directory, file name, extension) and then re-combining the pieces as appropriate.

This is useful, for example, in the context of running the same process repeatedly on a number of inputs, and using the input file name as a basis for creating a distinct file name for the output.

Parse Path

The Path option in the Parse Path properties is used to set the path to the input file, e.g., D:\work\output\data.txt. When the process model is run this setting will break down into the following outputs:

The folder name: D:\work\output

The file name: data

The file extension: txt

The file name and extension: data.txt

Compose Path

The options in the Compose Path properties are used to recombine the folder, file name or extension to recreate the path.

1. Use the Browse button to set the location of the Folder.

2. For other components, click the check box to enable the fields and type the Name, Extension or Name and Extension.

If a value is entered for both the Name and Extension field and the Name field, then the contents of the Name field replaces its portion of NameExtension.

If both NameExtension and Extension are provided then Extension replaces its portion of NameExtension.

When the process model is run, these will construct the path.

can also be used as output prompts.