Find out the directory from which the current executable is running from.
I would like the know the directory path from which I am running the current executable from? GetCurrentDirectory() is not providing me the correct one?
Thanks
Ramesh
Re: Find out the directory from which the current executable is running from.
"The GetModuleFileName function retrieves the full path and file name for the executable file containing the specified module." (copy from a manual).
You can use this function to get the full path, and can split the directory by using _splitpath function.