You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Determines if both paths share the same root.

Syntax

IsSameRoot = SRP_Path("IsSameRoot", Path1, Path2)

Parameters

ParameterDescription
Path1A path without command line parameters.
Path2A path without command line parameters.

Returns

1 If both paths share the same root, 0 otherwise.

Remarks

The IsSameRoot service determines if the two path share the same root. This is useful to checking to see if two paths point to the same drive.

Example

Result1 = SRP_Path("IsSameRoot", "C:\Windows", "C:\Users")
Result2 = SRP_Path("IsSameRoot", "\\server\dir", "\\server\sub")

Both results will be 1.

See Also

IsDirectory, IsDirectoryEmpty, IsNetworkPath, IsRelative, IsRoot, IsSystemFolder, IsUNC, IsURL

  • No labels