Determines if the path points to a root drive or network store.

Syntax

IsRoot = SRP_Path("IsRoot", Path)

Parameters

ParameterDescription
PathA path without command line parameters.

Returns

1 If the path points to the root of a drive or network store.

Remarks

The IsRoot service determines if your path is just pointing to the root of a drive. Network server roots also count, such as "\\server\store". However, if the path contains anything at a sub-directory level, this returns 0.

Example

Result1 = SRP_Path("IsRoot", "C:\")
Result2 = SRP_Path("IsRoot", "\\server")
Result3 = SRP_Path("IsRoot", "\\server\dir")

All results will be 1.

See Also

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

  • No labels