Compares Path 1 to Path 2 and returns a relative path between the two paths, the common path between the two paths, and a Boolean that indicates whether the paths are on the same path hierarchy level.

For example, if Path 1 is C:\folder\sub\test.txt and Path 2 is C:\folder\sub2\dir\test2.doc, Relative Path from 1 to 2 returns ..\..\sub2\dir\test2.doc. Common Path returns C:\folder, and Path 2 Relative to Path 1 returns FALSE because you have to go up two levels in the path hierarchy to get to the common path between Path 1 and Path 2.


icon

Inputs/Outputs

  • cpath.png Path 1

    Path 1 specifies the first path.

  • cpath.png Path 2

    Path 2 specifies the second path.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ipath.png Relative Path from 1 to 2

    Relative Path from 1 to 2 returns the relative path you have to take on disk to get from Path 1 to Path 2.

  • ipath.png Common Path

    Common Path returns the part of the absolute path that Path 1 shares with Path 2.

  • ibool.png Path 2 Relative to Path 1?

    Path 2 Relative to Path 1? is TRUE if Path 1 is on the same directory level as Path 2. Otherwise, this output is FALSE.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.