changeDir¶
Purpose¶
Changes the working directory within a program.
Format¶
-
d =
changeDir(s)¶ Parameters: s (string) – directory to change to. Returns: d (string) – new working directory, or null string if change failed.
Examples¶
If your current working directory is C:\gauss\time-series and you enter:
changeDir("examples");
Then changeDir() will return:
C:\gauss\time-series\examples
and set your working directory to that folder as well. The folder must exist before using this function.