<?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: call .exe, let it run and open another .jsl after .exe closed in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/194131#M41495</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using RunProgram(). It work as what I want. But somehow, when I try using it with my add-in, it prompt me this error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"CreateProcess failed with error 2: The system cannot find the file specified"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what is wrong and how to solve this problem. Below is current code that I use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mcr = RunProgram(Executable("$ADDIN_HOME(com.jmp.matlabinjmp)/Get_CSVs_19.exe"),&lt;BR /&gt;Read Function("blob"));&lt;/P&gt;&lt;P&gt;// call another .jsl to concatenate table&lt;BR /&gt;include("$ADDIN_HOME(com.jmp.matlabinjmp)/CombineCSVs_Split_By_UnitID.jsl");&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 07:45:55 GMT</pubDate>
    <dc:creator>AY</dc:creator>
    <dc:date>2019-04-23T07:45:55Z</dc:date>
    <item>
      <title>call .exe, let it run and open another .jsl after .exe closed</title>
      <link>https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/193903#M41473</link>
      <description>&lt;P&gt;Hi. I want to run my .exe application using JMP script and after .exe closed, I want my JMP script to execute another script sequentially. Right now, if i run my code, both .exe and .jsl run at the same time. I need output from .exe as an input to my .jsl which is why I need .exe to finish running first. Below is my code. Anyone can help me?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open("C:\GetICOS_CSVs.exe");
include("C:\ICOS_Data Pull\CombineCSVs_Split_By_UnitID.jsl");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 15:34:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/193903#M41473</guid>
      <dc:creator>AY</dc:creator>
      <dc:date>2019-04-22T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: call .exe, let it run and open another .jsl after .exe closed</title>
      <link>https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/193995#M41479</link>
      <description>&lt;P&gt;Rather than using the OPEN() command to run your .exe, take a look at using Run Program()&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 14:06:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/193995#M41479</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-04-22T14:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: call .exe, let it run and open another .jsl after .exe closed</title>
      <link>https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/194131#M41495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using RunProgram(). It work as what I want. But somehow, when I try using it with my add-in, it prompt me this error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"CreateProcess failed with error 2: The system cannot find the file specified"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what is wrong and how to solve this problem. Below is current code that I use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mcr = RunProgram(Executable("$ADDIN_HOME(com.jmp.matlabinjmp)/Get_CSVs_19.exe"),&lt;BR /&gt;Read Function("blob"));&lt;/P&gt;&lt;P&gt;// call another .jsl to concatenate table&lt;BR /&gt;include("$ADDIN_HOME(com.jmp.matlabinjmp)/CombineCSVs_Split_By_UnitID.jsl");&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 07:45:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/194131#M41495</guid>
      <dc:creator>AY</dc:creator>
      <dc:date>2019-04-23T07:45:55Z</dc:date>
    </item>
  </channel>
</rss>

