IsParent(
     path:parent,
     path:child
)
int

Arguments

parent

Parent path to test.

child

Child path to test against parent.

Return value

Number of levels difference between the paths.

Description

Tests whether parent is a parent of child.

If not, returns 0. Otherwise, returns the number of levels that parent is above child.

Example:

parentPath = "C:\Windows";
childPath = "C:\Windows\System32";
Output( IsParent(parentPath, childPath) );
--> 1

See also:
Count
Parent