[doc] misc. fix & improvements
[scilab.git] / scilab / modules / fileio / help / ja_JP / directory / chdir.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2008 - INRIA
5  * ...
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  * Copyright (C) 2019 - Samuel GOUGEON
8  *
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.
15  *
16  -->
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="ja" xml:id="chdir">
21     <refnamediv>
22         <refname>chdir</refname>
23         <refpurpose>Scilab カレントディレクトリを変更する</refpurpose>
24     </refnamediv>
25     <refnamediv xml:id="cd">
26         <refname>cd</refname>
27         <refpurpose>Scilab カレントディレクトリを変更する</refpurpose>
28     </refnamediv>
29     <refsynopsisdiv>
30         <title>呼び出し手順</title>
31         <synopsis>
32             b = chdir(path)
33             realpath = cd(path)
34             cd path
35         </synopsis>
36     </refsynopsisdiv>
37     <refsection>
38         <title>パラメータ</title>
39         <variablelist>
40             <varlistentry>
41                 <term>b</term>
42                 <listitem>
43                     <para>chdir処理がokの場合に論理値 %t. </para>
44                 </listitem>
45             </varlistentry>
46             <varlistentry>
47                 <term>path</term>
48                 <listitem>
49                     <para>文字列</para>
50                 </listitem>
51             </varlistentry>
52             <varlistentry>
53                 <term>realpath</term>
54                 <listitem>
55                     <para>文字列, パス名変換の後に実際のパス名(以下参照)</para>
56                 </listitem>
57             </varlistentry>
58         </variablelist>
59     </refsection>
60     <refsection>
61         <title>説明</title>
62         <para>
63             カレントの Scilab ディレクトリを<literal>path</literal>
64             で指定したディレクトリに変更します.
65             パス変換が実行されるため,例えば,
66             <literal>SCI/modules/core/macros</literal>は unix および windows の両方で
67             有効であることに注意してください.
68             path が空の場合, "home" ディレクトリに変更されます.
69         </para>
70     </refsection>
71     <refsection>
72         <title>例</title>
73         <programlisting role="example"><![CDATA[
74 chdir("SCI/etc")
75 pwd
76 cd ..
77 cd TMPDIR
78 p = cd()
79 p == home
80      ]]></programlisting>
81         <screen><![CDATA[
82 --> chdir("SCI/etc")
83  ans  =
84   T
85
86 --> pwd
87  ans  =
88  C:\Programs\scilab\scilab-6.0.2\etc
89
90
91 --> cd ..
92  ans  =
93  C:\Programs\scilab\scilab-6.0.2
94
95 --> cd TMPDIR
96  ans  =
97  C:\Users\Me\AppData\Local\Temp\SCI_TMP_5444_26901
98
99 --> p = cd()
100  p  =
101  C:\Users\Me
102
103 --> p == home
104  ans  =
105   T
106 ]]></screen>
107     </refsection>
108     <refsection role="see also">
109         <title>参照</title>
110         <simplelist type="inline">
111             <member>
112                 <link linkend="isdir">isdir</link>
113             </member>
114             <member>
115                 <link linkend="pwd">pwd</link>
116             </member>
117             <member>
118                 <link linkend="home">home</link>
119             </member>
120             <member>
121                 <link linkend="filebrowser">filebrowser</link>
122             </member>
123             <member>
124                 <link linkend="uigetdir">uigetdir</link>
125             </member>
126         </simplelist>
127     </refsection>
128 </refentry>