DIR_CHANGE

DIR_CHANGE D

THE CURRENT DIRECTORY BECOMES THE DIRECTORY D

  • Type: Command
  • Parameter: 1
  • Group: Directory

ACTION

The command DIR_CHANGE D changes the current directory, which becomes the directory D. D is the absolute or relative name of the directory.

If D is a relative name, D is supposed to be a sub-directory of the current directory.

The absolute name is the entire name, related to the root of the file system (ex: "c:\temp\files\" or "c:\temp\files").

The relative name is the name of the directory related to the current directory (ex: "files").

Examples:

- the command DIR_CHANGE "c:\aaa\bbb" with an absolute name presumes that the directory c:\aaa\bbb exists,

- the command DIR_CHANGE "bbb" with a relative name presumes that the directory bbb exists in the current directory.

SYNTAX: DIR_CHANGE D

  • D = absolute or relative name of the directory.

USE

  • The command DIR_CHANGE is used to change the current directory.

ERROR

  • If D is not a correct name of directory.
  • If the directory D does not exist.

EXAMPLE

rem take as current directory the directory "abcd" in the current directory

dir_change "abcd"

rem take as current directory the directory "c:\aaaa"

dir_change "c:\aaaa"

SEE ALSO

DIR_CHANGE

DIR_EXISTS()

DIR_CURRENT$