Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/joncampbell123/dosbox-x/llms.txt

Use this file to discover all available pages before exploring further.

DOSBox-X accepts a rich set of command-line options that control how the emulator starts, which configuration it loads, what program it runs, and how it behaves at runtime. Options may be prefixed with either a hyphen (-) or a forward slash (/), so -help and /help are equivalent. All options are case-insensitive.

Basic Usage

dosbox-x [name] [options]
Where [name] is an optional path to a DOS executable (.com, .exe, or .bat) or a disk image to run immediately on launch. Any options listed below may accompany it.
On Windows builds, options can use either - or / as a prefix. On Linux and macOS, only - is guaranteed to work in all shells.

Configuration File Search Order

When no -conf option is specified, DOSBox-X searches for a configuration file in the following order. The first file found is used:
  1. Current working directory — dosbox-x.conf
  2. Current working directory — dosbox.conf
  3. Directory of the DOSBox-X executable — dosbox-x.conf
  4. Directory of the DOSBox-X executable — dosbox.conf
  5. Platform resource directory (e.g., ~/.config/dosbox-x/) — dosbox-x.conf
  6. User-level platform config directory — dosbox-x.conf
If none of these are found, DOSBox-X runs with built-in defaults.
If a dosbox-x.conf (or dosbox.conf) file exists in the current working directory, it will override the user-level config file. This can cause unexpected behaviour when launching DOSBox-X from directories that contain game-specific configs.

Options Reference

-?, -h, -help
flag
Display the help screen listing all available command-line options, then exit.
-v, -ver, -version
flag
Print the DOSBox-X version string and copyright notice to stderr, then exit.
-helpdebug
flag
Show the extended help screen that lists advanced debugging-related options.

Quick-Reference Table

OptionDescription
-helpShow help screen
-versionShow version info
-fullscreenStart in fullscreen
-conf <file>Load config file
-set <s p=v>Override a config value
-c <cmd>Run extra DOS command
-exitExit after autoexec
-fastlaunchSkip BIOS/welcome screen
-securemodeDisable mounting & mapper
-machine <type>Select machine type
-lang <file>Use message/language file
-startuiOpen GUI config tool
-startmapperOpen key mapper
-noautoexecSkip autoexec section
-silentRun silently and exit
-time-limit <n>Kill after n seconds
-debugEnable debug logging
You can chain multiple -c options on a single command line to execute a sequence of DOS commands at startup. For example:
dosbox-x -c "MOUNT C ~/dosgames" -c "C:" -c "CD MYAPP" -c "MYAPP.EXE" -exit

Build docs developers (and LLMs) love