QBasic Tutorials: QBasic with DOSBox - Part 2

Part 2 - Automation and Customization

In order to store all DOSBox / QuickBASIC related files, we have to add another directory (C:\oldDOS\Progs) to our folder structure.
Copy or move all your DOS stuff to that directory:

[Fig. 3.1 - 3.2: Directories]

Now we can restart DOSBox, as described in Part 1, Fig. 2.2 with one exception:
In order to have full access to all data in Progs, we'll integrate that directory as drive D (Fig. 4.1). Here we go:

Type   mount C C:\oldDOS\QB45  

Type   mount D C:\oldDOS\Progs  

To change to drive C, type   C:  

Last but not least, type in   qb   and confirm with  

Finally we are able to load, execute, modify and save every source code stored in drive D!

[Fig. 4.1 - 4.3: DOS Screens]

The time-consuming typing before each start of QuickBASIC is extremely annoying.
Is that really necessary? Fortunately, the answer is: No!
The following section describes how to start QuickBASIC automatically:

Go to Start Menu > DOSBox-0.74 > Options and click on DOSBox-0.74 (Fig. 5.1)
Scroll down to [autoexec] in the opened config file and add the following lines (Fig. 5.2)

[Fig. 5.1 - 5.2: Configuration]

Once the config file has been saved and closed, DOSBox needs to be restarted. Now QB should be available immediately without any additional typing.

priority_high Part 3 describes how to launch a variety of applications within DOSBox with little effort using shortcuts.