<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    I made a quick test and it seems to work ( curiosity ... I never
    used powershell with Scilab )<br>
    <br>
    ps.sce :<br>
    <br>
    <br>
    <tt>PS E:\git\6.0\scilab>
      $objScilab.SendScilabJob("exec('d:\tests\ps.sce', -1);")</tt><tt><br>
    </tt><tt><br>
         0.3616361   0.4826472   0.5015342   0.6325745<br>
         0.2922267   0.3321719   0.4368588   0.4051954<br>
         0.5664249   0.5935095   0.2693125   0.9184708<br>
      0<br>
    </tt><br>
    Is it possible that you have an error in your file ?<br>
    Do you have try to exec your file in Scilab ?<br>
    <br>
    Antoine<br>
    <div class="moz-cite-prefix">Le 26/10/2018 à 16:45, FIXED-TERM Nacer
      Mohamed Ikbal (ETAS/ESY) a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:5b81b67b49b647238f28478e14301e67@etas.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">hello
            mesdames and sirs,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">I
            want to ask you about the possibility of calling a function
            that has been written within a scilab from powershell.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">I
            am doing the following after have the file where the code
            written a side than calling it :<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="background:white;text-autospace:none"><span
            style="font-size:9.0pt;font-family:"Lucida
            Console""><o:p> </o:p></span></p>
        <p class="MsoNormal"
          style="background:white;text-autospace:none"><span
            style="font-size:9.0pt;font-family:"Lucida
            Console";color:orangered" lang="FR">$objScilab</span><span
            style="font-size:9.0pt;font-family:"Lucida
            Console";color:darkgray" lang="FR">.</span><span
            style="font-size:9.0pt;font-family:"Lucida
            Console"" lang="FR">SendScilabJob(<span
              style="color:darkred">"exec('D:\New\ScilabCode.sce', -1)"</span>)
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"
            lang="FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"
            lang="FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">I
            always receive an error result 999 in powershell<br>
            <br>
          </span><o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>