Description
Changes the working directory.
Synopsis
cd dirname
Option
Specify the name of a directory to which the current working directory is changed. The directory names on Windows can be also separated by a slash (/) in addition to the backslash (\). When using a backslash sign, the entire directory name must be enclosed in braces ({}) so as not to be treated as an escape character.
Caution
If a name of a non-existing directory is specified, the script is forced to exit upon detecting the occurrence of an exception.
Example
[Windows]
The following example moves the current directory to c:\tmp.
cd {c:\tmp}
[UNIX]
The following example moves the current directory to /var/tmp.
cd /var/tmp