Software Archive
Read-only legacy content
17060 Discussions

Calling file displaying with the file's default program from a Fortran Windows App.

Intel_C_Intel
Employee
545 Views
Thank you, first of all, for reading this; and please accept my apologies for any grammatical or lexical mistake, since this is not my native language.

Getting down to business, I want my Fortran Windows application to call the Windows Notepad program when I push a button, displaying automatically a .txt file.
Right now, when I push the button on the dialog, the program executes the required i/o operations with the .txt file; but, when I want to see the results, I have to open the file myself.
Is there any way of opening this file from within my program with the Notepad?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
545 Views
The easiest way is to call RUNQQ with a NOTEPAD command. If you want more control, see the CreateProcess Win32 API routine.

Steve
0 Kudos
Reply