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 tools allow for breaking an input file path into its component pieces (folder, file name, and extension) and then re-combining the pieces as appropriate.

This is useful, for example, for running the same process repeatedly on a number of inputs and using their input file names as a basis for creating a distinct file name for each output. You can combine this with the Concatenate tool to add a suffix to the new file names.

Parse Path

The Parse Path tool takes a file as input and breaks its path into its constituent parts as output. For example, if the input file is D:\work\output\data.txt then Parse Path will break it 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 Compose Path tools combines the strings “Folder”, “Name” “Extension”, and/or “Name and Extension” to create a path.

If a value is entered for both the “Name and Extension” field and the “Name” field, then the contents of the “Name” field replace the name in “Name and Extension”.

If a value is entered for both the “Name and Extension” field and the “Extension” field, then the contents of the “Extension” field replace the extension in “Name and Extension”.