qb45advr.hlp (
Topic list)
CHDIR Statement Details
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
CHDIR Statement Details
Syntax
CHDIR pathspec
The pathspec is a string expression identifying the directory
that is to become the default directory. The pathspec must
have fewer than 64 characters. It has the following syntax:
[drive:][]directory[directory]...
The argument drive: is an optional drive specification. If you omit
drive, CHDIR changes the default directory on the current drive.
CHDIR differs from the CHDIR command in DOS in two ways:
1. The BASIC statement cannot be shortened to CD.
2. There is no form of the CHDIR statement that returns
the current directory.
Note: The CHDIR statement changes the default directory but not the
default drive. For example, if the default drive is C, then
the following CHDIR statement changes the default directory
on drive D, but the default drive is still C:
CHDIR "D:TMP"