Skip to content

Troubleshooting

Outcome: the failures this guide's own lab actually met, each with its cause and its fix — most DOSBox confusion is one of these six.

"Directory … doesn't exist." The mount failed because the folder path is wrong (transcript t07 has it verbatim). DOSBox then boots happily to Z: anyway, which makes the next error — every file on that drive "not found" — look unrelated. Read the mount message at boot; it is printed before the prompt and names the path it was given. Fixes: check the path on the host, quote paths containing spaces, and remember the path is a host path, in host syntax.

"Illegal command: …" The shell does not know the word. Either it is a typo, the program is not on the current drive or PATH, or — the subtle case — the command does not exist in DOSBox's shell at all: PROMPT is the famous one (t04). Run HELP for the list the shell does support, and check whether an external program (a FreeDOS tool, a program of your own) provides it.

"File … not found." Three possible causes, one message: the drive was never mounted (see above), the file truly is absent, or the name is not the name DOS knows — a long host name must be used in its 8.3 mangled form (t02). DIR the folder from inside before concluding anything.

A scripted run hangs and never exits. A batch file in the startup chain took control and the closing exit never ran (t07). Use CALL for batches in a chain, or put the whole sequence in one driver batch ending in EXIT. When driving DOSBox from scripts, a timeout on the host side is cheap insurance and turns the hang into a visible failure instead of a stuck process.

A redirected file exists but is empty. If the line was CALL something > file, DOSBox 0.74 creates the file and sends the output to the screen anyway (t07). Redirect a plain command after the CALL — a TYPE of what the batch wrote, or a SET — or have the batch write its own results file with >>, as LEDGER.BAT does.

No sound, and alarming log lines. On a machine without audio hardware, the host log fills with ALSA complaints ("cannot find card '0'") while DOSBox runs on, silent (t07). The messages are the host's libraries, not the guest's: inside DOSBox the Sound Blaster is present at the address in SET's BLASTER line regardless. If the guest reports no sound card, check [sblaster] sbtype is not none and that the program is looking at the same port and interrupt BLASTER advertises — and if the host itself is silent, check its own mixer, outside DOSBox's jurisdiction.

The program runs absurdly fast (or slowly). That is chapter 11: read CONFIG -GET "cpu cycles", then set the speed on purpose instead of accepting auto's guess.