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

Calling DOS exe

ferrad01
Beginner
714 Views
Is it possible to call a DOS executable from Intel Fortran? If so, can you point me to some docs.
Thanks,
0 Kudos
2 Replies
ferrad01
Beginner
714 Views
Quoting - ferrad01
Is it possible to call a DOS executable from Intel Fortran? If so, can you point me to some docs.
Thanks,

I found it: i = system("dir >x.x")
0 Kudos
TimP
Honored Contributor III
714 Views
Quoting - ferrad01
Is it possible to call a DOS executable from Intel Fortran? If so, can you point me to some docs.
Thanks,
The SYSTEM and SYSTEMQQ functions are described in the documentation which comes with ifort. This permits passing a command line to the shell under which the Fortran .exe was started., so it would have to be a .exe which works in that shell.
0 Kudos
Reply