Determine Executable Starting Directory
In Linux, how does one determine the starting directory for an executable? In Win32, the analogous function would be GetModuleFileName(), which returns the path to the executable image. Is there a way to do the same, either from a shell script, Java, or C/C++ program?
|