Hi! This is my first thread here. I have been searching half of the day now trying to find a way to get the name of an application trough its .exe.
I am able to get the name of the exe easly.
For example, if I have the path to an application that is:
C:\Program Files\AVG\AVG10\avgtray.exe
I would like to get the name of the application (not avgtray but AVG Antivirus).
Another example is:
C:\Program Files\SRS Labs\Audio Sandbox\SRSSSC.exe /hideme
I would like to get: SRS Audio Sandbox.
I am able to use this:
1 2 3 4 5 6 7
|
char szAppPath[MAX_PATH] = "";
string strAppName;
::GetModuleFileName(NULL, szAppPath, MAX_PATH);
strAppName = szAppPath;
strAppName = strAppName.substr(strAppName.rfind("\\") + 1);
|
And from that get the name of the file (not the app). Even tought it is the name of the file of the application oppened and not a specified application.
Q: So, is there a way I can get the name of the application (not name of .exe file) from the .exe file?
Even better would be a way to get into strings the information that you can see of an .exe in Properties>Details.
Thanks in advanced. (Sorry if I make a post mistake)