Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - 日本語

Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Files : Input/Output functions > chdir

chdir

Scilab カレントディレクトリを変更する

cd

Scilab カレントディレクトリを変更する

呼び出し手順

b=chdir(path)
realpath=cd(path)
cd path

パラメータ

b

chdir処理がokの場合に論理値 %t.

path

文字列

realpath

文字列, パス名変換の後に実際のパス名(以下参照)

説明

カレントの Scilab ディレクトリをpath で指定したディレクトリに変更します. パス変換が実行されるため,例えば, SCI/modules/core/macrosは unix および windows の両方で 有効であることに注意してください. path が空の場合, "home" ディレクトリに変更されます.

chdir(TMPDIR);
pwd
cd 
cd SCI

参照

  • pwd — Scilab カレントディレクトリを出力
<< basename Files : Input/Output functions copyfile >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:45:56 CEST 2011