Very simple problem: Regarding EXE folder
-
Hello All How to know the Path where the Application EXE is present in run time? If multiple copies of the EXE is present in diff directories I have to do some process depeneding on from where it is getting executed. I tried to search in CWinApp but i could get only the Application Name (m_pszAppName). how to find the whole path of EXE file? Thanks for your time Ravi
-
Hello All How to know the Path where the Application EXE is present in run time? If multiple copies of the EXE is present in diff directories I have to do some process depeneding on from where it is getting executed. I tried to search in CWinApp but i could get only the Application Name (m_pszAppName). how to find the whole path of EXE file? Thanks for your time Ravi
sravishankar wrote:
How to know the Path where the Application EXE is present in run time?
Use
GetModuleFileName(NULL, ...)
.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb