Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Get input file name from Windows?

rkaehler
Beginner
660 Views

I have a IVF console app that the client would like to be able to start by double-clicking (in Windows) on any data file with a particular extension, and then have the program run that file. I can set up the association in Windows fine to force the app to launch whenever a file of a particular extentsion is double clicked, but do no know how to extract the name of the input file from within the FORTRAN app once the application is launched.

Can anyone point me in a direction to the solution to this?

Thanks

0 Kudos
4 Replies
Steven_L_Intel1
Employee
660 Views

GET_COMMAND_ARGUMENT. Should be argument 1

0 Kudos
rkaehler
Beginner
660 Views

So it is!

Thanks

0 Kudos
cacciatore
Beginner
660 Views

Hi,

I could not find GET_COMMAND_ARGUMENT in CVF6.6B help. Is there an equivalent command in CVF?

Thanks

0 Kudos
Steven_L_Intel1
Employee
660 Views

GETARG. GET_COMMAND_ARGUMENT is a Fortran 2003 intrinsic that CVF did not implement.

0 Kudos
Reply