View previous topic :: View next topic |
Author |
Message |
johannes
Joined: 21 Jan 2011 Posts: 65 Location: Leimen, Germany
|
Posted: Sun Oct 27, 2013 10:53 am Post subject: How to get the installation path of the running exe? |
|
|
Hi all,
given I run a Fortran exe. Now I want to request its installation path from the running code itself.
Is this possible, without intermediate parsing a task manager output?
Regards, johannes |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2402 Location: Yateley, Hants, UK
|
Posted: Sun Oct 27, 2013 11:06 am Post subject: |
|
|
Easy enough:
Code: | CHARACTER*(256) PROG_PATH_NAME
INCLUDE <WINDOWS.INS>
CALL GET_PROGRAM_NAME@ (PROG_PATH_NAME) |
Eddie |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Sun Oct 27, 2013 4:15 pm Post subject: |
|
|
Also GET_COMMAND and GET_COMMAND_ARGUMENT. |
|
Back to top |
|
 |
|