How to call dos command in fortran code?
How to call dos command in fortran code?
(OP)
Hello,
I want to call a dos command in my fortran 90 code and I d'ont know how to do. Can somebody help me?
Thank's.
I want to call a dos command in my fortran 90 code and I d'ont know how to do. Can somebody help me?
Thank's.





RE: How to call dos command in fortran code?
program XXX
use msflib
character(len=3) :: command
logical :: result
command = 'dir'
result = systemqq (command)
end program XXX
will execute the dir command.
RE: How to call dos command in fortran code?
However... I doubt that there are any F90 compilers that can't do these things. The "CALL SYSTEM( )" command is a fairly common extension used by many compiler vendors. You'll have to look in your compilers documentation to be sure how to do it correctly. People here can only guess and tell you what their particular compiler can do.
Dan
www.dtware.com