CALL CHDRV
This page was last modified 11:17, 18 May 2020 by Mars2000you. Based on work by Rderooy.

Contents

Effect

Changes default drive.

Only works with version 2 of Disk BASIC, as provided by the MSX-DOS 2 cartridge or the MSX Turbo R machines.

Notes:

  • If you start the MSX computer and boot directly in MSX-BASIC, the default drive is A:
  • If you use version 1 of Disk BASIC, the only way to change the default drive is to go to the MSX-DOS 1 command line with CALL SYSTEM, indicate there another drive (example: A>B:), then go back to BASIC with the BASIC command.

Syntax

CALL CHDRV ("<DriveLetter>:")

Parameter

<DriveLetter> is the letter for the new default drive. As MSX supports up to 4 disk controllers with two drives each, it means you can have drive letter A through H.

Examples

CALL CHDRV ("B:")  'Sets the B: drive to be the default

Related to

CALL CHDIR, FILES

Compatibility

Disk BASIC 2.0 or higher