[Scilab-users] Windows shell command

Stefan Du Rietz sdr at durietz.se
Wed Oct 28 00:32:35 CET 2015


Hello,

I want to run and get the output from the command robocopy under 
Windows 10 from Scilab. I have tried the Scilab functions unix_g(), 
dos(), and powershell() but I always get the same empty output:



->[rep, stat] = unix_g(cmd)

  stat  =

     1.

  rep  =




However, the command is successful: the files are copied OK.



If I run the command (cmd) from Windows "Command Prompt" or "Select 
Windows PowerShell" I get the output.



If I use xcopy I also get the output from Scilab
.


Regards

Stefan




More information about the users mailing list