Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
currentdir - queries and/or sets the current working directory
Calling Sequence
currentdir()
currentdir(dirName)
Parameters
dirName
-
the name of the directory to change to
Description
If called with no arguments, currentdir returns the current working directory as a Maple string.
If called with one argument, which must be a Maple string or symbol, currentdir sets the current working directory to the specified directory. The currentdir command returns the previous working directory as a Maple string.
The set of characters that are permitted in directory names is system dependent. Likewise, the character used to separate the components of a directory is system dependent. If the backslash character is to appear in the string, it must be doubled up, since Maple strings use the backslash character as an escape character.
If the specified directory does not exist, or cannot be accessed for some other reason, currentdir will generate an error.
The kernelopts(homedir) command determines the path to the current home directory.
Changing the current directory does not affect library paths that were specified in a relative way on the Maple command line; all such library paths become fully qualified (ie. absolute) when Maple starts. However, library paths specified subsequently (that is, by assignment to libname) may become invalid if they were relative, and the current directory is later changed.
The current directory is not affected by the restart command.
Current Directory Indicator in Standard Interface
In the Maple Standard interface, the current directory is indicated in the status bar at the bottom of the Maple window.
This indicator is a live control. To set a new current working directory interactively through the Maple Standard interface:
Click the current directory indicator on the status bar.
Navigate to the desired new directory.
For more information on the status bar, see Status Bar.
Examples
See Also
getenv, kernelopts, libname, mkdir, restart, rmdir, worksheet/reference/statusline
Download Help Document