Skip to content

ChDrive

Changes the current drive.

Syntax: ChDrive drive

drive
required A string expression that specifies an existing drive. If drive is a zero-length string (""), the current drive doesn't change. If the drive argument is a multiple-character string, ChDrive uses only the first letter.

See Also

Example

This example uses the ChDrive statement to change the current drive.

vb
ChDrive "D"   ' Make "D" the current drive.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author