1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
7 * Copyright (C) 2019 - Samuel GOUGEON
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
17 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20 xml:lang="en" xml:id="chdir">
22 <refname>chdir</refname>
23 <refpurpose>changes Scilab current directory</refpurpose>
25 <refnamediv xml:id="cd">
27 <refpurpose>changes Scilab current directory</refpurpose>
38 <title>Arguments</title>
43 <para>a character string</para>. The default path is <literal>home</literal>.
50 a boolean: <constant>%t</constant> if <function>chdir</function> operation
58 <para>a character string, the real path name after pathname
59 conversion (see below)
66 <title>Description</title>
67 <para>Change the current Scilab directory to those given by
68 <varname>path</varname>.
72 Note that, if any, <link linkend="SCI">SCI</link>,
73 <link linkend="SCIHOME">SCIHOME</link>,
74 <link linkend="TMPDIR">TMPDIR</link> and
75 <link linkend="home">home</link> headings constants in path are converted.
76 For example, <literal>SCI/modules/core/macros</literal> is a valid pattern for
77 both Unix and Windows.
82 <title>Examples</title>
83 <programlisting role="example"><![CDATA[
98 C:\Programs\scilab\scilab-6.0.2\etc
103 C:\Programs\scilab\scilab-6.0.2
107 C:\Users\Me\AppData\Local\Temp\SCI_TMP_5444_26901
118 <refsection role="see also">
119 <title>See also</title>
120 <simplelist type="inline">
122 <link linkend="isdir">isdir</link>
125 <link linkend="pwd">pwd</link>
128 <link linkend="home">home</link>
131 <link linkend="filebrowser">filebrowser</link>
134 <link linkend="uigetdir">uigetdir</link>