Path.GetDirectoryNameWithoutRoot Method (String)
Click or drag to resize
PathGetDirectoryNameWithoutRoot Method (String)
[AlphaFS] Returns the directory information for the specified path string without the root information, for example: "C:\Windows\system32" returns: "Windows".

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static string GetDirectoryNameWithoutRoot(
	string path
)

Parameters

path
Type: SystemString
The path.

Return Value

Type: String
The pathwithout the file name part and without the root information (if any), or if path is or if path denotes a root (such as "\", "C:", or * "\\server\share").
See Also