B
bhavya internship
Guest
Hello All,
I am using the below code snippet to get the process name (powerchute.exe) from the given path
std::wstring strProcessName;
std::wstring strFilePath = "C:\Program Files (x86)\Common Files\Installer\powerchute.exe";
size_t npos = strFilePath.rfind(L"\\");
strProcessName = strFilePath.substr(npos + 1, strFilePath.length());
But it is showing double quotes (") with process name (powerchute.exe"). How to remove double quotes (") showing at the end of the process name?
Regards,
Continue reading...
I am using the below code snippet to get the process name (powerchute.exe) from the given path
std::wstring strProcessName;
std::wstring strFilePath = "C:\Program Files (x86)\Common Files\Installer\powerchute.exe";
size_t npos = strFilePath.rfind(L"\\");
strProcessName = strFilePath.substr(npos + 1, strFilePath.length());
But it is showing double quotes (") with process name (powerchute.exe"). How to remove double quotes (") showing at the end of the process name?
Regards,
Continue reading...