CHDRIVE statement

Purpose: Use this statement to change to a specified drive.


 Syntax:

 CHDRIVE DriveLetter$

 Parameters:

  • DriveLetter$ String literal or variable containing letter of drive to which to change. A colon must follow the drive letter, for example,
    
     DIM TheDrive$
     TheDrive$ = "C:"
     CHDRIVE TheDrive$
    
    

    or

    
     CHDRIVE "C:"