Chdir

chdir path

Stands for change directory. Changes the current drive and/or subdirectory name to path. To return to the desktop, use the volume name alone as input to chdir. Backslashes are used to separate the names of directories. See currentdir and directories.

Examples:

show directories

Media My Work Projects

chdir "Media

If one of the elements of the path has spaces, vertical bars must enclose the whole path.

chdir "|C:\MicroWorlds\My Work|

Some special inputs can be used with chdir. Chdir ".. returns to the parent directory. Chdir "a: (or any valid drive name) sets the current directory to the designated drive.

show currentdir

C:\MicroWorlds\My Work

chdir "..

show currentdir

C:\MicroWorlds

chdir "a:

show currentdir

A:\