CHDIR Statement

The CHDIR statement used to change the default directory on the specified drive.
  • Syntax: 
    • CHDIR [path]
  • Eg: 
    • CHDIR "C:\QBasic\my_files"
This example will change the default directory to the directory my_files. And if the programs are saved, it will be saved inside my_files directory instead of QBasic directory.

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.