SECFileSystem::GetBaseFileName

CStringSECFileSystem::GetBaseFileName(const CString&PathAndFileName)

Returns the filename without path or extension.

Defined in: filesys.cpp

Return Value

he base part of the filename in the specified path.

Parameters

PathAndFileName

A filename, possibly containing a path.

Comments

To return the filename (without extension) given a path.

Example

CString sName = fs.GetBaseFileName("c:\\foo\\bar\\what.txt");
ASSERT(sName == "what");
CString sName = fs.GetBaseFileName("what.txt");
ASSERT(sName == "what");

See Also

SECFileSystem  GetExtension  GetFileName  GetFileSystem  GetPath