Directory: GetParent

GetParent

Returns the parent of the specified directory.



 Public Function GetParent(
	  ByVal Path As String ) As DirectoryInfo

Parameters

Path
[ByVal] String. The directory to retrieve the parent of.

Return Values

DirectoryInfo -  A DirectoryInfo object representing the parent directory.

Remarks

The path can be absolute or relative.

See Also

Project VBCorLib Overview Class Directory Overview Directory Properties Directory Methods GetLogicalDrives Move