On 25/09/2012 15:36, haasejos wrote:
hallo,
I try to change a directory by using:
*[a,b,c] = dos('cd C:\Documents and Settings\haasejos\Desktop\' , '-echo');*
hi
as far as I understand, there are two reasons this does not work
first, there are spaces in the path you give to cd, so you should use
double strings as in the next example:
[a,b,c] = dos('cd ""C:\Documents and Settings\haasejos\Desktop\""' , '-echo');
anyway, scilab won't change the current directory using dos("cd"), but you can
still use other commands as:
[a b c]=dos('dir ""C:\Documents and Settings\""' , '-echo');
to check that dos and the "" "" thing actually work
cheers
That does not work as can be seen with the pwd-command.
Is there a bug in this commandline?
*cd ('C:\Documents and Settings\haasejos\Desktop\');* changes the directory
correctly.
thank you!
Josef
--
View this message in context:
http://mailinglists.scilab.org/dos-command-execution-tp4024900.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users