Run a DOS program in an emulator
ActivitiesProjects
Mount a folder in DOSBox and launch a legitimately sourced program from the emulated command prompt.
Running an old MS-DOS game or utility on a modern computer starts with an emulator such as DOSBox, which recreates an MS-DOS-compatible environment rather than relying on the host operating system to execute decades-old code directly. Because the emulator does not include the software itself, you will need the DOS program and its files saved on your computer before you begin. Many classic MS-DOS games run unmodified once configured, though compatibility is not universal; DOSBox does not run every PC program ever made, and its emulated hardware tops out at roughly Pentium I-level performance on a capable machine.
Mounting a folder as a virtual drive
When DOSBox opens, it drops you at a `Z:\>` command prompt. Before you can launch anything, you have to connect a folder on your computer to a virtual drive letter inside the emulator using the `MOUNT` command. Put your DOS software inside a dedicated subfolder rather than mounting an entire host drive—a mounted folder is real storage on your computer, so anything a DOS program writes or deletes there changes those actual files.
The virtual drive letter is just a mapping and does not need to match the host drive. On Windows, `mount c C:\DOSGAMES` maps that folder to drive `C:`; on macOS or Linux, the same step looks like `mount c ~/DOSGAMES`. Wrap any path containing spaces in quotation marks. Once mounted, type `C:` to switch to that drive, move into the program's directory with `CD` (for example, `CD TESTDRIV`), and run its executable—such as `TDCGA.EXE`. Launch files can end in `.EXE`, `.BAT`, or `.COM` depending on the program, so check the software's own instructions if several files appear; typing `HELP` at the prompt lists the emulator's built-in commands.
Handling CD-ROMs and disk images
Programs that require an installation disc or CD-ROM while running need that media mounted alongside your virtual hard drive. On Windows, a physical optical drive maps with a command like `MOUNT D D:\ -t cdrom`, while a disk image mounts directly through `IMGMOUNT`—for example, `IMGMOUNT E C:\Images\MyImage.iso -t iso`, adjusting the drive letters and paths to fit your setup.
If a disc includes separate music tracks alongside its data, use a CUE/BIN image pair rather than a data-only ISO, keeping the `.BIN` file in the same folder as its `.CUE` file. For multi-disc software, you can mount multiple images together and cycle between them with `Ctrl+F4`.
Tuning sound, speed, and controls
Sound may need configuration in the DOS program as well as the emulator. If a program runs silently, open its installation or sound-setup utility (often `setsound` or `setup`) and try autodetection first. When manual settings are required, DOSBox defaults to Sound Blaster or Sound Blaster 16 at address `220`, IRQ `7`, and DMA `1`. Because those parameters can be changed in the emulator's configuration file, the program's settings just need to match whatever sound card the emulator is set to provide.
While a program is running, a handful of DOSBox shortcuts handle display, mouse, and pacing adjustments (exact keys can differ in other DOS emulator variants):
- `Alt+Enter` toggles fullscreen mode.
- `Ctrl+F10` captures or releases the mouse cursor inside the emulator window.
- `Ctrl+F11` and `Ctrl+F12` decrease and increase emulated CPU cycles to slow down or speed up a program; pushing cycles too high can degrade performance rather than improve it.
- `Ctrl+F7` and `Ctrl+F8` decrease and increase frameskip when rendering lags, skipping drawn frames as a separate adjustment from CPU cycles.
Automating setup and refreshing files
Once you have a working folder layout, you can skip retyping the mount commands every session by placing your `MOUNT` line and `C:` in the `[autoexec]` section of the DOSBox configuration file, which runs automatically at startup.
Mounted folders also cache their contents rather than watching the host operating system for live changes. If you copy or modify files in the host folder while DOSBox is already open, press `Ctrl+F4` inside the emulator to refresh the drive cache so the updated files appear.
