QBasic Tutorials: QBasic with DOSBox - Part 4

Part 4 - A useful Tool

In previous parts of this tutorial I explained how to configure DOSBox with little effort so launching QuickBASIC on Windows 7 and higher is a breeze. But it can get even easier: BASIC 2 DOSBox! This little program does all the work for you. Merely the installation of DOSBox is required. BASIC 2 DOSBox is available after downloading/unzipping and can be launched by double clicking the basic2dos.exe file.

The following information (except Options) will be needed (Fig. 10.1):

[Fig. 10.1 - 10.2: BASIC 2 DOSBox]
  1. Path to DOSBox Executable: Please enter the full path to DOSBox.exe; e.g .:  C:\oldDOS\DOSBox\DOSBox.exe  
  2. Path to BASIC Destination Folder: Full path to a folder of your choice, e.g.:  C:\oldDOS\  
  3. Installation: Select at least one BASIC version
  4. Options:
    • Shut down DOSBox when exiting: If selected, DOSBox will be terminated after exiting QuickBASIC or any other application respectively
    • Full-Screen Mode: If checked, DOSBox will be launched in full-screen mode
    • Copy Example Files: This will copy seven sample programs to _source\EXAMPLES:
      1. GORILLA.BAS
      2. MONEY.BAS
      3. NIBBLES.BAS
      4. QBLOCKS.BAS
      5. REMLINE.BAS
      6. REVERSI.BAS
      7. SORTDEMO.BAS
  5. Click Next. Once the installation is complete, confirm with "Yes" to quit (Fig. 10.2).

Open the subfolder _shortcuts in the folder you have selected in step 2.
By double-clicking a shortcut, DOSBox will be launched with the chosen configurations.
In order to have access to all your BASIC source code, you should move these files to the subdirectory named _source.
This folder will always be mounted as drive D.
Additionally, another subdirectory named _floppy will always be mounted as Floppy Drive A.

It's as simple as that! Have fun!