<?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 Can I set program arguments in Visual Studio 2008? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830116#M52002</link>
    <description>Can you attach the actual program? Do you still have the DVF/CVF project and, if so, can you attach the .dsp file from that project? So far I am not seeing anything you have told us that would look at the command line.&lt;BR /&gt;&lt;BR /&gt;Please also tell us what you have put in for the command arguments value. Ian had a good suggestion that you are using redirection. This has been broken in some earlier versions of Visual Studio - which Visual Studio version are you using?</description>
    <pubDate>Wed, 18 Jan 2012 00:17:12 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2012-01-18T00:17:12Z</dc:date>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830103#M51989</link>
      <description>I am running a code in Digital Fortran where a .run file is specified under Program&amp;gt;Settings&amp;gt;Program Arguments. The code runs succesfully.&lt;BR /&gt;I am also currently trying to translate the code so that it can run in Visual Studio 2008. Is there a way to specify the same .run file as a program argument there? I tried to specify the file under Project&amp;gt;Properties&amp;gt;Configuration Properties&amp;gt;Debugging&amp;gt;Command Arguments but it doesn't seem to work.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;Christina</description>
      <pubDate>Mon, 16 Jan 2012 21:40:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830103#M51989</guid>
      <dc:creator>Christina_S_</dc:creator>
      <dc:date>2012-01-16T21:40:25Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830104#M51990</link>
      <description>Yes, it works the same way as in VS98/CVF. I've done this many times.</description>
      <pubDate>Mon, 16 Jan 2012 23:51:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830104#M51990</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-01-16T23:51:14Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830105#M51991</link>
      <description>Unfortunately it still does not seem to work. So when I specify the argument do I just write down the file name including the extention? Is there any symbol I need to include? &lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Christina</description>
      <pubDate>Tue, 17 Jan 2012 15:00:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830105#M51991</guid>
      <dc:creator>Christina_S_</dc:creator>
      <dc:date>2012-01-17T15:00:40Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830106#M51992</link>
      <description>Note you can havedifferent settings for command arguments, etc for debug and release.&lt;BR /&gt;Haveyou set the command arguments for both debug and release?&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:16:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830106#M51992</guid>
      <dc:creator>bmchenry</dc:creator>
      <dc:date>2012-01-17T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830107#M51993</link>
      <description>Thanks for the note. I just did and still does not work.</description>
      <pubDate>Tue, 17 Jan 2012 15:30:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830107#M51993</guid>
      <dc:creator>Christina_S_</dc:creator>
      <dc:date>2012-01-17T15:30:40Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830108#M51994</link>
      <description>Can you attach a ZIP of a sample project showing the problem?</description>
      <pubDate>Tue, 17 Jan 2012 15:50:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830108#M51994</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-01-17T15:50:59Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830109#M51995</link>
      <description>You need to have the file in the same folder as the project. or provide the complete path to the file.&lt;BR /&gt;&lt;BR /&gt;Also, if you have release configuration and debug, you need to put it in the correct configuration -- plus, you would need to run from within the IDE. This hasn't changed from CVF, DVF, etc.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:41:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830109#M51995</guid>
      <dc:creator>lklawrie</dc:creator>
      <dc:date>2012-01-17T16:41:11Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830110#M51996</link>
      <description>I just tried this with this sample program:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[plain]    program cmdargs

    implicit none

    character(80) arg
    integer i, num_args

    num_args = COMMAND_ARGUMENT_COUNT()
    print *, "There are", num_args, "arguments"
    do i=1,num_args
      call GET_COMMAND_ARGUMENT(i,arg)
      print *, "Argument", i, "is ", trim(arg)
      end do

    end program cmdargs[/plain]&lt;/PRE&gt; In the project properties, Debugging, Command Arguments I have: First Second Third&lt;BR /&gt;&lt;BR /&gt;When I run the program I get:&lt;BR /&gt;&lt;PRE&gt;[plain] There are 3 arguments
 Argument 1 is First
 Argument 2 is Second
 Argument 3 is Third[/plain]&lt;/PRE&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2012 17:06:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830110#M51996</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-01-17T17:06:48Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830111#M51997</link>
      <description>The line that gives the problem in the code is :&lt;BR /&gt;&lt;BR /&gt;read(kcfile, '(a8)', end= 10) zcmndt&lt;BR /&gt;&lt;BR /&gt;Variable "zcmndt" is supposed to read the data from the .run file (which I defined under the command arguments) -and it doesn't.&lt;BR /&gt;Do I need to make any further changes to this line except setting the file in the command arguments to make it work?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Christina</description>
      <pubDate>Tue, 17 Jan 2012 20:15:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830111#M51997</guid>
      <dc:creator>Christina_S_</dc:creator>
      <dc:date>2012-01-17T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830112#M51998</link>
      <description>Ah, there were aspects you weren't telling us!&lt;BR /&gt;&lt;BR /&gt;My guess is that you are relying on the Microsoft Fortran PowerStation feature where you can do:&lt;BR /&gt;&lt;BR /&gt;OPEN (UNIT=kcfile, FILE='')&lt;BR /&gt;&lt;BR /&gt;and it will open the file named in the first argument on the command line. You need an option to get that behavior - as you did in DVF/CVF. In Visual Studio, right click on the project and select Properties. Go to the Fortran &amp;gt; Compatibility property page and change "Files from command line (PowerStation)" to Yes, then rebuild. &lt;BR /&gt;&lt;BR /&gt;If that doesn't solve the problem, please show us the statement where unit kcfile is opened.</description>
      <pubDate>Tue, 17 Jan 2012 20:30:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830112#M51998</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-01-17T20:30:47Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830113#M51999</link>
      <description>Sorry for not being too clear but there are so many details..&lt;BR /&gt;Unfortunately that didn't solve the problem as well.&lt;BR /&gt;I believe this is the line you are looking for:&lt;BR /&gt;&lt;BR /&gt;open(unit = kcfile, file = zcfile, status = 'UNKNOWN')&lt;BR /&gt;&lt;BR /&gt;However, in the code the line menioned above exists in an "if statement" that is false and therefore is not read. kcfile is set equal to 5 in a previous if statement.&lt;BR /&gt;Does this make any sense?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Christina</description>
      <pubDate>Tue, 17 Jan 2012 21:35:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830113#M51999</guid>
      <dc:creator>Christina_S_</dc:creator>
      <dc:date>2012-01-17T21:35:42Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830114#M52000</link>
      <description>Were you using input redirection previously (did you have something like &lt;CODE&gt;&lt;FILENAME.EXT&gt;&lt;/FILENAME.EXT&gt;&lt;/CODE&gt; in the command's "arguments")?</description>
      <pubDate>Tue, 17 Jan 2012 22:08:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830114#M52000</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2012-01-17T22:08:14Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830115#M52001</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1326842146859="55" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=524789" href="https://community.intel.com/en-us/profile/524789/" class="basic"&gt;Christina Syrrakou&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;EM&gt;Unfortunately it still does not seem to work. So when I specify the argument do I just write down the file name including the extention?&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;STRONG&gt; [SergeyK] What about a path to that file?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Is there any symbol I need to include? &lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Christina&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 23:16:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830115#M52001</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-01-17T23:16:49Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830116#M52002</link>
      <description>Can you attach the actual program? Do you still have the DVF/CVF project and, if so, can you attach the .dsp file from that project? So far I am not seeing anything you have told us that would look at the command line.&lt;BR /&gt;&lt;BR /&gt;Please also tell us what you have put in for the command arguments value. Ian had a good suggestion that you are using redirection. This has been broken in some earlier versions of Visual Studio - which Visual Studio version are you using?</description>
      <pubDate>Wed, 18 Jan 2012 00:17:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830116#M52002</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-01-18T00:17:12Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830117#M52003</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1326856240140="55" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=336209" href="https://community.intel.com/en-us/profile/336209/" class="basic"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;Yes, it works the same way as in &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;VS98&lt;/SPAN&gt;&lt;/STRONG&gt;/CVF. I've done this many times.&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Hi Steve,&lt;BR /&gt;&lt;BR /&gt;Why did you mention &lt;STRONG&gt;VS98&lt;/STRONG&gt; ( Visual Studio 98 )?&lt;BR /&gt;&lt;BR /&gt;Just in case, I have a &lt;STRONG&gt;VS98 Enterprise Edition&lt;/STRONG&gt; on one of my test laptops and I could verifyredirection,if&lt;BR /&gt;needed. Just let me know.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Sergey&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;PS:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;It is &lt;STRONG&gt;8:19pm&lt;/STRONG&gt; inCalgary, AB and the current temparature outside is &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;-32 Celsius&lt;/SPAN&gt;&lt;/STRONG&gt;. With a windchill it feels like &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;-45 Celsius&lt;/SPAN&gt;&lt;/STRONG&gt;...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 03:18:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830117#M52003</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-01-18T03:18:57Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830118#M52004</link>
      <description>Yes, you are right! I was using &lt;VTC_MESH.RUN under=""&gt;&lt;/VTC_MESH.RUN&gt;Now I am trying to run the code in Microsoft Visual Studio 2008 and it doesn't work.&lt;BR /&gt;&lt;BR /&gt;Thank you..again!Learning a lot..&lt;BR /&gt;Christina</description>
      <pubDate>Wed, 18 Jan 2012 15:10:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830118#M52004</guid>
      <dc:creator>Christina_S_</dc:creator>
      <dc:date>2012-01-18T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Can I set program arguments in Visual Studio 2008?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830119#M52005</link>
      <description>I mentioned VS98 because CVF used VS98 as the development environment.&lt;BR /&gt;&lt;BR /&gt;I just tried an experiment with redirection in VS2008 and it worked. Make sure that your VTC_Mesh.run file is in the project folder (the one with the .vfproj file) and not with the executable. As an alternative, give the full path to the input file (enclose the file specification in "" if there are embedded spaces.)&lt;BR /&gt;&lt;BR /&gt;There had been a bug in earlier VS versions through VS2005 where this did not work, but it does in VS2008.&lt;BR /&gt;&lt;BR /&gt;What are the values of kcfile and zcfile? I am especially suspicious of your having FILE= in the OPEN because that would tend to block redirection. The redirection you are using assumes you are reading from "standard input" which is, by default, connected to unit 5. If you OPEN unit 5 to a separate file, then the redirection will not work.</description>
      <pubDate>Wed, 18 Jan 2012 15:51:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-set-program-arguments-in-Visual-Studio-2008/m-p/830119#M52005</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-01-18T15:51:54Z</dc:date>
    </item>
  </channel>
</rss>

