Silverfrost Forums

Welcome to our forums

How to get the installation path of the running exe?

27 Oct 2013 9:53 #13236

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

27 Oct 2013 10:06 #13237

Easy enough:

       CHARACTER*(256) PROG_PATH_NAME
       INCLUDE <WINDOWS.INS>
       CALL GET_PROGRAM_NAME@ (PROG_PATH_NAME)

Eddie

27 Oct 2013 3:15 #13239

Also GET_COMMAND and GET_COMMAND_ARGUMENT.

Please login to reply.