chdir
changes Scilab current directory
cd
changes Scilab current directory
Syntax
b = chdir(path) realpath = cd(path) cd path
Arguments
- path
a character string
. The default path ishome.- b
a boolean:
%tifchdiroperation is successful.- realpath
a character string, the real path name after pathname conversion (see below)
Description
Change the current Scilab directory to those given by
path.
![]() |
Examples
--> chdir("SCI/etc")
ans =
T
--> pwd
ans =
C:\Programs\scilab\scilab-6.0.2\etc
--> cd ..
ans =
C:\Programs\scilab\scilab-6.0.2
--> cd TMPDIR
ans =
C:\Users\Me\AppData\Local\Temp\SCI_TMP_5444_26901
--> p = cd()
p =
C:\Users\Me
--> p == home
ans =
T
See also
- isdir — checks that a path points to an existing directory
- pwd — gets Scilab current directory
- home — Gives the user directory.
- filebrowser — Open the Scilab file browser
- uigetdir — dialog for selecting a directory
| Report an issue | ||
| << Directory | Directory | createdir >> |
