## Directory::GetDirectoryRoot method


Returns the root directory of the specified path.

```cpp
static String System::IO::Directory::GetDirectoryRoot(const String &path)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | A path from which a root directory is to be obtained |

### ReturnValue

The name of the root directory in **path**

## See Also

* Class [String](../../../system/string/)
* Class [Directory](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
