bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CHDRIVE Statement Details
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
CHDRIVE changes the current drive.
 
CHDRIVE drive$
    ■ The argument drive$ must correspond to an existing drive and must be
      in the range A to lastdrive, where lastdrive is the maximum drive
      letter you set in your CONFIG.SYS file.
    ■ If you omit the argument drive$, BASIC generates an error.
    ■ If you supply a null argument ("") for drive$, the current drive does
      not change.
    ■ If the argument drive$ is more than one character, CHDRIVE uses only
      the first letter.
 
Usage Notes
    ■ CHDRIVE is not case sensitive. "C" is the same as "c".