Allen wrote:
> There are some ways you can still find it out.
>
> Windows GetModuleFileName or something like that should return the path to
> the
> executable file. On Linux I think there is either an environment variable
> or
> symbolic link, something like /proc/self or _SELF or something. I've read
> about it it's supposed to contain the path to the executable. I don't
> think it is a POSIX standard but just used on Linux.
On Linux, /proc/self/exe is a symbolic link to the executable.
-a.
Post a reply to this message
|