Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Fortran Programming Language

Running Windows Programs from Fortran


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.

Any ideas?

Thanks

Tuli

PS I know that can be done in MATLAB

On May 30, 4:36 pm, tuli <tuli.herscov@gmail.com> 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.

"tuli" <tuli.herscov@gmail.com> wrote in message

news:1180557376.881073.86850@j4g2000prf.googlegroups.com...

What you are asking for is a non-standard feature, which may not be provided
with the compiler. Most, however, will offer such support - you will have to
look at the documentation that came with your compiler.

For DVF, look up SYSTEM, and note that it will require a USE DFPORT command,
and (just possibly) ensuring that link with the DFPort library.

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.
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc