<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running a software from a Fortran code in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865657#M70575</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/93858"&gt;bmchenry&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;You might also try looking at the Windows API routine "Createprocess"&lt;BR /&gt;&lt;BR /&gt;3rd party interfaces for Fortran like Winteracter simplify the use of CreateProcess with simple commands like:&lt;BR /&gt;Call IOsExecute(CommandChar)&lt;BR /&gt;whereCommandChar is a Character string with whatever you wish to pass to the operating system.&lt;BR /&gt;&lt;BR /&gt;brian&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Many thanks Brian.&lt;/P&gt;
&lt;P&gt;I don't know anything about that you said. Can it be used to run the bat filewith the command box?&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2009 19:50:58 GMT</pubDate>
    <dc:creator>h_amini</dc:creator>
    <dc:date>2009-04-06T19:50:58Z</dc:date>
    <item>
      <title>Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865651#M70569</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;
&lt;P&gt;I need to run a software (TNO DIANA) as a subroutine in an iterative procedure of my Fortran program.&lt;/P&gt;
&lt;P&gt;The company says it is not possible, but the software has a command box which can be linked to Visual Fortran Compiler. The software can be run from the command box and with a .bat file.&lt;/P&gt;
&lt;P&gt;So I can write a run file and ask DIANA to do several analyses but I cannot interrupt it to let my Fortran program generate the required data file for the next run.&lt;/P&gt;
&lt;P&gt;I am just wondering if there is any command in FORTRAN can be used for running a software or is there any program can be used for this purpose?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2009 18:25:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865651#M70569</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-06T18:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865652#M70570</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I am not entirely sure what you are asking. If you want to run an external program from within a Fortran program, perhaps you need to read up on SYSTEM&lt;BR /&gt;&lt;BR /&gt;use ifport&lt;BR /&gt;&lt;BR /&gt;integer :: result&lt;BR /&gt;&lt;BR /&gt;result = SYSTEM("c:Programsmyprog.exe")&lt;BR /&gt;&lt;BR /&gt;for example.&lt;BR /&gt;&lt;BR /&gt;Other than that, you will have to check with TNO DIANA or hope that someone else on the Forum is a Diana user and has done what you are looking to do.&lt;BR /&gt;&lt;BR /&gt;ron&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Apr 2009 19:07:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865652#M70570</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2009-04-06T19:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865653#M70571</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/160574"&gt;Ronald Green (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I am not entirely sure what you are asking. If you want to run an external program from within a Fortran program, perhaps you need to read up on SYSTEM&lt;BR /&gt;&lt;BR /&gt;use ifport&lt;BR /&gt;&lt;BR /&gt;integer :: result&lt;BR /&gt;&lt;BR /&gt;result = SYSTEM("c:Programsmyprog.exe")&lt;BR /&gt;&lt;BR /&gt;for example.&lt;BR /&gt;&lt;BR /&gt;Other than that, you will have to check with TNO DIANA or hope that someone else on the Forum is a Diana user and has done what you are looking to do.&lt;BR /&gt;&lt;BR /&gt;ron&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Many thanks Ronald.&lt;/P&gt;
&lt;P&gt;Is it possible to run a .bat file from my program? In fact running the bat file, runs DIANA, then performs an analysis.&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2009 19:28:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865653#M70571</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-06T19:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865654#M70572</link>
      <description>&lt;BR /&gt;You might also try looking at the Windows API routine "Createprocess"&lt;BR /&gt;&lt;BR /&gt;3rd party interfaces for Fortran like Winteracter simplify the use of CreateProcess with simple commands like:&lt;BR /&gt;Call IOsExecute(CommandChar)&lt;BR /&gt;whereCommandChar is a Character string with whatever you wish to pass to the operating system.&lt;BR /&gt;&lt;BR /&gt;brian&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Apr 2009 19:36:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865654#M70572</guid>
      <dc:creator>bmchenry</dc:creator>
      <dc:date>2009-04-06T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865655#M70573</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/407202"&gt;h.amini&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; &lt;BR /&gt;
&lt;P&gt;Many thanks Ronald.&lt;/P&gt;
&lt;P&gt;Is it possible to run a .bat file from my program? In fact running the bat file, runs DIANA, then performs an analysis.&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;sure, modify the example to:&lt;BR /&gt;&lt;BR /&gt;result = SYSTEM("c:mydirmybatch.bat")&lt;BR /&gt;&lt;BR /&gt;but keep in mind that there is no data sharing between the external .bat or program run by SYSTEM and the main program. So in this case, you'd need to run the Diana program as above, then perhaps use OPEN statements to open the results file and read everything into the program. &lt;BR /&gt;</description>
      <pubDate>Mon, 06 Apr 2009 19:40:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865655#M70573</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2009-04-06T19:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865656#M70574</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/160574"&gt;Ronald Green (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;sure, modify the example to:&lt;BR /&gt;&lt;BR /&gt;result = SYSTEM("c:mydirmybatch.bat")&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;When I try to run the bat file with&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;result&lt;/STRONG&gt; = SYSTEM("D:testf1.bat")&lt;/P&gt;
&lt;P&gt;the command in the bat file (&lt;EM&gt;diana file1.dat file1.com&lt;/EM&gt;) is read and shown, but my program says &lt;EM&gt;diana' is not recognized as an internal or external command, operable program or batch file.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;In fact, the bat file must be run in the command box of DIANA. But how can I do that from within my code?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2009 19:42:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865656#M70574</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-06T19:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865657#M70575</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/93858"&gt;bmchenry&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;You might also try looking at the Windows API routine "Createprocess"&lt;BR /&gt;&lt;BR /&gt;3rd party interfaces for Fortran like Winteracter simplify the use of CreateProcess with simple commands like:&lt;BR /&gt;Call IOsExecute(CommandChar)&lt;BR /&gt;whereCommandChar is a Character string with whatever you wish to pass to the operating system.&lt;BR /&gt;&lt;BR /&gt;brian&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Many thanks Brian.&lt;/P&gt;
&lt;P&gt;I don't know anything about that you said. Can it be used to run the bat filewith the command box?&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2009 19:50:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865657#M70575</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-06T19:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865658#M70576</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
There are (expensive) commercial utitlies to capture Windows GUI box keyboard entries and re-run them from a script.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Apr 2009 20:13:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865658#M70576</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-06T20:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865659#M70577</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/407202"&gt;h.amini&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Many thanks Brian.&lt;/P&gt;
&lt;P&gt;I don't know anything about that you said. Can it be used to run the bat filewith the command box?&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I think the answer is 'no'. &lt;BR /&gt;&lt;BR /&gt;You are asking, can Fortran launch this 'command box' - probably yes. You would have to know the name of the program that launches the 'command box'. You could go to TNO and ask "How do I start the command box from a command line window?" and they could give you the command needed to start your command box.&lt;BR /&gt;&lt;BR /&gt;BUT you cannot start this command box AND have the program put the name of the batch file in the text box and click OK or ENTER or whatnot.&lt;BR /&gt;&lt;BR /&gt;The only possible way is if the command box program accepts the batch file name as an argument.&lt;BR /&gt;&lt;BR /&gt;This you'll have to work out with TNO, but I guess they have already said this is impossible.&lt;BR /&gt;&lt;BR /&gt;ron&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Apr 2009 20:19:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865659#M70577</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2009-04-06T20:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865660#M70578</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;There are (expensive) commercial utitlies to capture Windows GUI box keyboard entries and re-run them from a script.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Can they work in conjunction with my code? How much are they roughly? How can I get them?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2009 20:26:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865660#M70578</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-06T20:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865661#M70579</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I think there may be an easier solution.&lt;BR /&gt;&lt;BR /&gt;1) create one program called RUNDIANA. What this program will do is to call DIANA using the SYSTEM command to call the BAT file which call DIANA with the options required and then close.&lt;BR /&gt;&lt;BR /&gt;2)create your second, main progrm which has the main loop: &lt;BR /&gt;2a)delete anyBAT file, &lt;BR /&gt;2b)create a new BAT file with the options you want for calling DIANA&lt;BR /&gt;2c)save/close the BAT file, &lt;BR /&gt;2d)call the program RUNDIANA to execute DIANA.&lt;BR /&gt;&lt;BR /&gt;OnceRUNDIANA exits and returns control to your second, main program, you have code toevaluate the output files from DIANA. Once that is completed, then simplyloops to 2a) above&lt;BR /&gt;&lt;BR /&gt;The 3rd party vendors have system calls/interfaces which can assist you with this. but you'll need to check their documentation/contact them. winteracter.com is one i use. &lt;BR /&gt;&lt;BR /&gt;brian</description>
      <pubDate>Mon, 06 Apr 2009 21:24:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865661#M70579</guid>
      <dc:creator>bmchenry</dc:creator>
      <dc:date>2009-04-06T21:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865662#M70580</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/93858"&gt;bmchenry&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;1) create one program called RUNDIANA. What this program will do is to call DIANA using the SYSTEM command to call the BAT file which call DIANA with the options required and then close.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Appreciated very much Brian. But how can I do step 1)? I can probably create a program which calls the command box of DIANA. But, how the BAT file can be called?&lt;/P&gt;
&lt;P&gt;What I do by hand is to write the name of the BAT file in the command box and press enter. I need to do it automatically inthe loop of my program.&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2009 08:18:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865662#M70580</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-07T08:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865663#M70581</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/407202"&gt;h.amini&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;When I try to run the bat file with&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;result&lt;/STRONG&gt; = SYSTEM("D:testf1.bat")&lt;/P&gt;
&lt;P&gt;the command in the bat file (&lt;EM&gt;diana file1.dat file1.com&lt;/EM&gt;) is read and shown, but my program says &lt;EM&gt;diana' is not recognized as an internal or external command, operable program or batch file.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;In fact, the bat file must be run in the command box of DIANA. But how can I do that from within my code?&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;The system wil interpret the command "diana file1.dat file1.com" as meaning "diana.EXE file1.dat file1.com" and will look for the program diane.exe in the local directory. If it cannot find it there, or if it cannot find it somewhere in the path held in the PATH environment variable, then you will get the message shown.&lt;BR /&gt;&lt;BR /&gt;Clearly, the system does not know where to find diane.exe, so you must tell it where to find it, either by supplying the full path to diane e.g. &lt;BR /&gt;&lt;BR /&gt;d:mypathtodianadiana.exe file1.dat file1.com&lt;BR /&gt;&lt;BR /&gt;or by modifying PATH before you try and execute "diana file1.dat file1.com" as follows:&lt;BR /&gt;&lt;BR /&gt;PATH=d:mypathtodiana;%PATH%&lt;BR /&gt;diana file1.dat file1.com</description>
      <pubDate>Tue, 07 Apr 2009 09:09:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865663#M70581</guid>
      <dc:creator>anthonyrichards</dc:creator>
      <dc:date>2009-04-07T09:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865664#M70582</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/341673"&gt;anthonyrichards&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;The system wil interpret the command "diana file1.dat file1.com" as meaning "diana.EXE file1.dat file1.com" and will look for the program diane.exe in the local directory. If it cannot find it there, or if it cannot find it somewhere in the path held in the PATH environment variable, then you will get the message shown.&lt;BR /&gt;&lt;BR /&gt;Clearly, the system does not know where to find diane.exe, so you must tell it where to find it, either by supplying the full path to diane e.g. &lt;BR /&gt;&lt;BR /&gt;d:mypathtodianadiana.exe file1.dat file1.com&lt;BR /&gt;&lt;BR /&gt;or by modifying PATH before you try and execute "diana file1.dat file1.com" as follows:&lt;BR /&gt;&lt;BR /&gt;PATH=d:mypathtodiana;%PATH%&lt;BR /&gt;diana file1.dat file1.com&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Appreciated very much for your comment.&lt;/P&gt;
&lt;P&gt;I could not find the executable file of the command box, but as you said adding the following line to the BAT file could solve the problem.&lt;/P&gt;
&lt;P&gt;PATH=C:Program FilesDiana 9.3bin;%PATH%&lt;/P&gt;
&lt;P&gt;The next thing I need is to delete a file, e.g. a DAT, from may program. I will probably ask it in a new discussion.&lt;BR /&gt;&lt;BR /&gt;Many thanks &lt;BR /&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2009 09:59:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865664#M70582</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-07T09:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865665#M70583</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/407202"&gt;h.amini&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Appreciated very much for your comment.&lt;/P&gt;
&lt;P&gt;I could not find the executable file of the command box, but as you said adding the following line to the BAT file could solve the problem.&lt;/P&gt;
&lt;P&gt;PATH=C:Program FilesDiana 9.3bin;%PATH%&lt;/P&gt;
&lt;P&gt;The next thing I need is to delete a file, e.g. a DAT, from may program. I will probably ask it in a new discussion.&lt;BR /&gt;&lt;BR /&gt;Many thanks &lt;BR /&gt;Hamid&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
A suggestion: get a book about Fortran, or find a Fortran user manual (if you are using IVF it has a very comprehensive manual). You will find the answers to many of your questions in such a document. It is very important to learn how to find information from the documentation.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Apr 2009 20:41:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865665#M70583</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2009-04-08T20:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running a software from a Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865666#M70584</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/311276"&gt;gib&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;A suggestion: get a book about Fortran, or find a Fortran user manual (if you are using IVF it has a very comprehensive manual). You will find the answers to many of your questions in such a document. It is very important to learn how to find information from the documentation.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Thank you for this. I've got the following three books in my office and usually check them before starting a new discussion.&lt;/P&gt;
&lt;P&gt;1- &lt;STRONG&gt;&lt;EM&gt;FORTRAN 77 and Numerical Methods for Engineers&lt;/EM&gt;&lt;/STRONG&gt;, Borse, G. J., PWS-Kent, 1991.&lt;/P&gt;
&lt;P&gt;2- &lt;STRONG&gt;&lt;EM&gt;Fortran 90 Programming&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;Ellis, T. M. R, Philips, I. R. and Lahey, T. M.. Addison-Wesley, 1994.&lt;/P&gt;
&lt;P&gt;3- &lt;STRONG&gt;&lt;EM&gt;FORTRAN&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt; with Engineering Applications&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;Koffman, E. B. and Friedman F. L., Addison-Wesley, 1993.&lt;/P&gt;
&lt;P&gt;If you know a more comprehensive reference, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2009 14:57:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Running-a-software-from-a-Fortran-code/m-p/865666#M70584</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2009-04-16T14:57:41Z</dc:date>
    </item>
  </channel>
</rss>

