Hello,

I have a file path in a wstring like this:

wstring pathName = L"c:\windows\system\test.exe";

I want to be able to geta new wstring that just contains "test" from this wstring.

How can I do that? Can someone provide example code?

Regards,
Ellay K.