<div dir="ltr">Hi all,<div><br></div><div>I previously queried an issue with the dos function in Scilab 6.1.1 not working as it should; i.e. dos('grdinfo file.grd') would fail and return F.</div><div><br></div><div>However, the workaround is the following: [result, bOK]=dos('exit | grdinfo file.grd')</div><div><br></div><div>This will write the result and return T, but not leave the command window open (if start was used instead). This could be put into a wrapper function:</div><div><br></div><div><pre style="font-family:Arial"><span style="color:rgb(176,24,19)">function</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(131,67,16)">result</span><span style="color:rgb(0,0,0)">, </span><span style="color:rgb(131,67,16)">bOK</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(0,0,0);text-decoration-line:underline">dos_win</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(131,67,16)">x</span><span style="color:rgb(74,85,219)">)</span>
    <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(131,67,16)">result</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(131,67,16)">bOK</span><span style="color:rgb(74,85,219)">]</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">dos</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">exit |</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(92,92,92)">+</span> <span style="color:rgb(131,67,16)">x</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(176,24,19)">endfunction</span></pre></div><div>It is interesting how basic dos commands work fine (e.g. dir, copy etc). More of an observation on the current behaviour on Windows (10).</div><div><br></div><div>At least one knows how to make it work now!</div><div><br></div><div>Lester</div></div>