Hello!
Does anybody know, how to let the program know, where the executable is located?
The situation is as follows:
Executable has to read it's ini-file, that is located in the same directory.
But if the executable is called from somewhere else (i.e. it is somewhere in
the PATH), then it does not know, where to get it's ini-file...
Introducing environment variable is a solution, but is there any other way,
for example, some fortran function?
GET_COMMAND gives only name, not path, so it will not help...
Any ideas?
Alexey
|