Directory: GetDirectoryRoot

GetDirectoryRoot

Returns the root directory of the specified path.



 Public Function GetDirectoryRoot(
	  ByVal Path As String ) As String

Parameters

Path
[ByVal] String. The path to return the root of.

Return Values

String -  The root of the specified directory.

Remarks

If the path is relative, then the current directory will be used as the root.

See Also

Project VBCorLib Overview Class Directory Overview Directory Properties Directory Methods GetDirectories GetFiles