<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#330000">
    <div class="moz-cite-prefix">On 25/09/2012 15:36, haasejos wrote:<br>
    </div>
    <blockquote cite="mid:1348580160682-4024900.post@n3.nabble.com"
      type="cite">
      <pre wrap="">hallo,
I try to change a directory by using: 
*[a,b,c] = dos('cd C:\Documents and Settings\haasejos\Desktop\' , '-echo');*</pre>
    </blockquote>
    <br>
    hi<br>
    <br>
    as far as I understand, there are two reasons this does not work<br>
    <br>
    first, there are spaces in the path you give to cd, so you should
    use double strings as in the next example:<br>
    <pre wrap="">[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

</pre>
    <br>
    <blockquote cite="mid:1348580160682-4024900.post@n3.nabble.com"
      type="cite">
      <pre wrap="">
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: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/dos-command-execution-tp4024900.html">http://mailinglists.scilab.org/dos-command-execution-tp4024900.html</a>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>