chdir
change le répertoire courant de Scilab
cd
change le répertoire courant de Scilab
Séquence d'appel
b = chdir(path) realpath = cd(path) cd path
Paramètres
- path
 une chaîne de caractères fournissant le chemin du répertoire.
homepar défaut.- b
 booléen :
%tsi le changement de répertoire courant a été effectué avec succès.- realpath
 une chaîne de caractères, le chemin effectif après conversion (voir ci-dessous)
Description
Change le répertoire courrant de Scilab par celui donné par la
            variable path.
![]()  | 
Exemples
--> 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
Voir aussi
- isdir — checks that a path points to an existing directory
 - pwd — affiche le répertoire courant de Scilab
 - home — Gives the user directory.
 - filebrowser — Open the Scilab file browser
 - uigetdir — dialog for selecting a directory
 
| Report an issue | ||
| << Répertoire | Répertoire | createdir >> | 
