Re: Current EXE path



Scott McPhillips [MVP] wrote:
Dimwit Flathead wrote:
William GS wrote:

Hello everybody. How can I obtain the current EXE path?

Thanks in advance,
William GS


Look at GetCurrentDirectory()

-DF

GetCurrentDirectory does not provide the EXE path!

For that you must use GetModuleFileName.


My apologies! I misunderstood that he wanted the current directory for the given process! A thousand pardons! I shall burn my hand with a cigarette as recompense immediately!
.



Relevant Pages