GetDirectoryName()

Path::GetDirectoryName(const String&) method

Returns the name of the directory referenced by the specified path.

static String System::IO::Path::GetDirectoryName(const String &path)

Arguments

ParameterTypeDescription
pathconst String&A path to a directory

Return Value

The directory’s name

See Also