Skip to content

DOSBox for Mere Mortals

The programs of the DOS years expect a computer that no longer exists: a megabyte of memory, a Sound Blaster, an operating system last sold decades ago. DOSBox is that computer, rebuilt as a program — an emulator that imitates the old PC so closely that software written for it cannot tell the difference. Inside its window sits a working DOS command line, ready for the games, tools and teaching programs of 1981 to 1995, running on whatever machine you actually own.

This guide builds the thing properly: what the moving parts are, how to install it, how to give it your folders as its drives, how to drive the DOS shell honestly — including the commands that turn out not to exist — and how to configure the emulated machine and prove each setting took effect. Then it puts real programs to work: a small stores ledger kept by batch files, and genuine FreeDOS utilities, copied from FreeDOS 1.4 itself, copying trees, comparing files and reporting the memory of a machine that is not there.

The lab behind this guide ran the real thing: DOSBox 0.74-3, the Ubuntu package, on a machine with an invisible screen and no sound card at all. So it drove DOSBox by the method this guide teaches throughout — asking the emulated machine to redirect its answers into files on a mounted drive, and reading the files. Screenshots exist (the emulator was given a screen in memory and photographed), but every claim that matters rests on text the guest itself wrote. What could not be verified that way — the sound of the music, the feel of a game — is labelled documented-only, in the open, in criteria.md.

Everything in the lab is DOSBox itself, software the lab wrote, or FreeDOS — free and legal to download and use. No commercial games appear, and nothing came from an "abandonware" site: the word is a courtesy title, not a legal one. Games enter only as description — the DOS releases stores like GOG sell with DOSBox bundled, and discs from the reader's own shelf — in chapter 13.

What this guide covers

  • What DOSBox is — the emulator, the machine it imitates, and the legal line the lab works inside
  • The moving parts — the emulator, the built-in DOS, drive Z:, your mounted folders, and the config file — which part does what
  • Installing DOSBox — the packaged install on each platform, and the version line that proves it runs
  • First boot — the welcome banner, and the machine's vital signs read with VER, MEM and SET
  • Mounting your folders — a real folder as drive C:, and the two surprises: names shrink to 8.3, and the free space is invented
  • The DOS command line, honestly — the working commands, redirection, and where this shell's DOS quietly stops
  • Config — dosbox.conf in depth — the sections of the config file, and changes proven from inside the guest
  • AUTOEXEC and batch files — the two autoexecs, batch files with ECHO, SET and IF, and the CALL trap
  • Running real programs — FreeDOS's XCOPY, FC and MEM at work inside the emulator
  • Sound and graphics — the emulated S3 and Sound Blaster 16, the BLASTER line, and what the lab could and could not check
  • CPU cycles and speed — why too fast is a DOS problem, and how to set and read back the speed
  • Recipes — a self-opening workbench, headless runs with kept output, backups and compares from inside, and two-speed configs
  • The neighbours — DOSBox-X, DOSBox Staging, FreeDOS on real hardware, full virtual machines, and the GOG route to legal games
  • Limits — the ageing shell, the unsandboxed mount, the unheard music, and the untested categories, named plainly
  • Troubleshooting — the mount that didn't, the illegal command, the empty capture, the hang, and the alarming-but-harmless log
  • Glossary — the terms, collected in one place

What it doesn't cover

Installing or running any commercial game — the lab owns none, and that was the point of the legal line. CD-ROM and floppy images are described (the IMGMOUNT mechanism) but not demonstrated, for want of anything legal and to hand to image. Joysticks, IPX multiplayer, printers and MIDI played through real hardware are characterised from the documentation. The forks — DOSBox-X and DOSBox Staging — are placed and compared, not installed.

How to use this guide

Read chapters 1 and 2 for the model. Chapters 3 to 5 get you a running machine with your own folder inside it. Chapter 6 is the honest map of the shell; chapters 7 and 8 are where the machine becomes yours — configured, self-starting, and doing batch work. Chapter 9 is the payoff: real programs, real files. The lab's transcripts live in dosbox-lab/transcripts/; its batch files, its modified config and its screenshots are alongside them in dosbox-lab/.


Part of the series

This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.

Related guides:

License

The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.