Getting full path name of executable

Getting full path name of executable

I am looking for a Fortran routine like GetFullPathName that
would provide the full pathname of the executable it is called
from.
* Is there such a subroutine is Fortran? I believe it exists in C/C++.
* Is there a Fortran library somewhere on web that would have it?
* Can anybody expalin to me how to quickly use the C/C++ implementation?
(I have Visual C/C++ 6.0 but I try not to be Windows specific as much as feasible).

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

GetFullPathName is a Win32 API routine that works fine in Fortran, but it doesn't do what you're asking for. It isn't a C/C++ routine.

An example of how to do what you want is included in my Win32 Corner newsletter article.

Steve

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today