Re: Running Windows Programs from Fortran



Beliavsky wrote:
On May 30, 4:36 pm, tuli <tuli.herscov...@xxxxxxxxx> wrote:
Hello,

I need to execute a Windows based application (say HFSS.exe) from
Fortran.
Tried to make a batch file but it did not work.

I use the Compaq Visual Fortran ver.6.6 on a 32 machine and/or PGI
Fortran (Release 7) on a 64 bit machine.

For Intel and Compaq Visual Fortran, use the "system" extension, for
example

program xsystem
implicit none
call system("try.bat")
end program xsystem

Maybe it is present in PGI, too -- I don't use that compiler.


It may work better with recent compilers if it is used in accordance with the documentation. Subroutine and function call interchangeability is a sometimes thing.
.



Relevant Pages

  • Re: PGI wierdness with .EQV.
    ... PGI F90. ... As Glen and James note, if your LVAR is not a properly defined ... not a compiler one, even if the program happened to work with many other ... Fortran is not C; logical and integer are diferent types and do not have ...
    (comp.lang.fortran)
  • Re: A question on Newtons Method
    ... >> I can't believe you'd advise a noob to use a compiler which is still ... > production codes and codes from textbooks. ... > The Fortran standard generally does not specify the required behavior ... >> another important class of hassle which most numerical programmers ...
    (sci.math.num-analysis)
  • Fortran Resources (June)
    ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... are available for Linux systems. ...
    (comp.lang.fortran)
  • Fortran Resources (July 2004)
    ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... are available for Linux systems. ...
    (comp.lang.fortran)
  • Fortran Resources (August 2004)
    ... and the standard for the Fortran language and its derivatives. ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... and Linux include source-compatible Fortran 95 compiler suites ... are available for Linux systems. ...
    (comp.lang.fortran)