i want a c code to get the complete path of any executable(.exe) install in the windows system drives ,like cmd .exe or any user created exe .
i try with windows API. GetModuleFileName() but it is giving me the location of currently executing exe location .
plese help me as soon as possible
Thanks
Sunil

Sam HobbsRank #107 · 20.5K reputationPosted Apr 5, 2013, 12:14 PM EDT
If you need the paths of executing programs then perhaps the answer is the ToolHelp32 Library.