[Scilab-users] dos function (update)

Lester Anderson arctica1963 at gmail.com
Mon May 30 07:47:51 CEST 2022


Hi all,

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.

However, the workaround is the following: [result, bOK]=dos('exit | grdinfo
file.grd')

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:

function [result, bOK]=dos_win(x)
    [result, bOK] = dos('exit |'+ x)endfunction

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).

At least one knows how to make it work now!

Lester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20220530/4465f7b7/attachment.htm>


More information about the users mailing list