Software Archive
Read-only legacy content
17060 Discussions

Getting full path name of executable

intelgg
Beginner
199 Views
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).
0 Kudos
1 Reply
Steven_L_Intel1
Employee
199 Views
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
0 Kudos
Reply