GetFileNameWithoutExtension()

Path::GetFileNameWithoutExtension(const String&) method

Returns the name without extension of the file referenced by the specified path.

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

Arguments

ParameterTypeDescription
pathconst String&A path to a file

Return Value

The file’s name without extension

See Also