Click to See Complete Forum and Search --> : Find out the directory from which the current executable is running from.


June 10th, 1999, 06:55 PM
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

Jaeyeon Lee
June 10th, 1999, 07:57 PM
"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.