Quote Originally Posted by ekhule View Post
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.
If you are using Windows, use the _tsplitpath function.

Regards,

Paul McKenzie