Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to find my program path that is running
i need own program path
Posted
Updated 18-May-14 6:44am
v2

You can use GetModuleFileName[^] to get the fully qualified name of the program.
Pass NULL as the first parameter to get the path of the executable file of the current process.
 
Share this answer
 
Have a look to:
http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from[^]

If you make a google search there are quite links explaining
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900