ClassSystem.IO.Directory SyntaxDim result As String = Directory.GetDirectoryRoot(path)
DescriptionThe GetDirectoryRoot method returns the name of the root directory of the drive on which path resides. For example, the code: Directory.GetDirectoryRoot("c:\Program Files\MyCompany") returns the string "C:\" as the root directory. Usage at a Glance
Version DifferencesVisual Basic 2005 includes a My.Computer.FileSystem.GetDirectoryInfo method that provides access to detailed information about a directory. See AlsoDirectory.GetParent Method |