Funcion dos(cmd) does not return results. I need to convert a large directory
Reported by Paul Omta
Originally assigned to Allan CORNET
-- Bug description --
Funcion dos(cmd) does not return results.
I need to convert a large directory of .m files and tried to use the GUI for that. Later I tried using the console with command translatepaths. Every time I get the error that a file cannot be found:
Opening translatepaths.sci, I can see that the problem is that filenames are not added to the pathname. Filenames are read by the command unix_g (which calls the command dos ). The executed command is 'dir /b'. I cannot get scilab to produce results with the dos command.
If I try dos('notepad'), notepad is started. If I try dos('ipconfig') it takes a while to execute (so ipconfig is executed) but still no output.
I think this is an important issue, because batch translations of .m files is now broken. I use the latest release version 5.1.1.
-- Scilab error message --
File Not Found
!--error 241
File "C:\Data\Scilab\" does not exist or read access denied.
at line 17 of function lst_funcall called by :
line 88 of function translatepaths called by :
translatepaths( "C:\Data\Scilab" )
-- How to reproduce the bug --
In console: [output, bStat] = dos('ipconfig')