sets the current directory.
ChDir a$
a$:sexp; name of current directory
ChDir sets the current directory. Since it is impossible to change the drive with ChDir, this command always defaults to the current drive. ChDir must be followed by the path name. If a$ contains only the backslash ("\"), the change to the root directory of the current drive is performed.
There are two special abbreviations for ChDir: "." and "..". "." is an alternative way to define the current subdirectory and ".." for the parent directory. Let's assume that the current subdirectory contains the directory Test, which in turn contains directories A1 and A2. \Test\A1 is the current path. In this case ChDir "..\A2" will change the current path to \Test\A2.
ChDrive 1 // Drive A is the current drive
ChDir "\Test" // A:\Test
ChDir "A1" // A:\Test\A1
ChDir "..\A2" // A:\Test\A2
{Created by Sjouke Hamstra; Last updated: 26/09/2014 by James Gaite}