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 provides a virtual read-only drive Z: that is always present and contains all of its built-in utility programs. These programs are embedded directly in the DOSBox-X executable — no installation is required and they cannot be accidentally deleted. They are organised into subdirectories on Z: such as Z:\SYSTEM\, Z:\DOS\, Z:\BIN\, and Z:\DEBUG\. This page documents the most important programs you will use during regular emulation.
The Z: drive is always the last drive letter. To see everything available, run DIR Z:\ /S /B from the DOSBox-X shell.

Disk & Drive Management

MOUNT

Mount a host directory or physical device as a DOS drive inside DOSBox-X. This is one of the most frequently used programs — it is how you make your real files accessible from inside the emulator.
MOUNT <drive> <hostpath> [-t <type>] [-label <label>] [-freesize <mb>]
      [-ro] [-nocachedir] [-q]
MOUNT -u <drive>
MOUNT
MOUNT C C:\dosgames
MOUNT D "D:\My CD Games" -t cdrom
MOUNT A A:\ -t floppy
MOUNT E ~/overlay -t overlay
MOUNT -u C
MOUNT
Mounting a drive with -t cdrom enables CD audio and Joliet/ISO 9660 handling. Without this flag, ISO features will not work even if the directory contains .cue or .iso files.
Running MOUNT with no arguments lists all currently mounted drives and their types.

IMGMOUNT

Mount a disk image file (floppy, hard disk, or CD-ROM) as a DOS drive. Supports raw .img, .ima, .iso, .cue/.bin pairs, and more.
IMGMOUNT <drive> <imagefile> [-t <type>] [-fs <filesystem>]
         [-size <ss,h,c>] [-ide <pos>] [-ro] [-q]
IMGMOUNT <drivenumber> <imagefile> [-t hdd|floppy|cdrom]
IMGMOUNT -u <drive>
IMGMOUNT
IMGMOUNT A floppy.img -t floppy
IMGMOUNT A disk1.img disk2.img disk3.img -t floppy
When mounting multiple floppy images at once (disk-swapping sets), pass them all on one command line. You can then swap between them using the DOSBox-X menu or hotkey.
Running IMGMOUNT with no arguments shows all currently mounted image drives and their status.

IMGMAKE

Create a new blank disk image file suitable for use with IMGMOUNT. Supports a range of standard floppy formats and arbitrary hard disk sizes.
IMGMAKE <filename> -t <type> [-size <mb>] [-nofs] [-source <drive>]
IMGMAKE floppy.img -t fd_1440
IMGMAKE old.img   -t fd_360
IMGMAKE hd720.img -t fd_720
IMGMAKE hd12.img  -t fd_1200
IMGMAKE hd288.img -t fd_2880

IMGSWAP

Swap between disk images in a multi-image set that was loaded via IMGMOUNT.
IMGSWAP [drive] [slot]
IMGSWAP A
IMGSWAP A 2

BOOT

Boot from a disk image file or from an emulated drive. Use this to run operating systems that require booting from a floppy or hard disk image (e.g., bare DOS, Windows 3.x booters, or custom OS images).
BOOT <imagefile> [-t floppy|hdd]
BOOT -l <drive>
BOOT boot.img
BOOT -l C
BOOT floppy.img -t floppy
Once BOOT hands control to the image, DOSBox-X’s built-in DOS kernel is bypassed. The Z: drive and all built-in programs will no longer be accessible until the session is reset.

Configuration

CONFIG

Read or write DOSBox-X configuration values at runtime, or save the current configuration to a file. This is the primary way to change emulator settings from within the DOS shell without restarting.
CONFIG -get <section> <property>
CONFIG -set <section> <property>=<value>
CONFIG -wc [filename]
CONFIG -all -wc [filename]
CONFIG -l
CONFIG -r [filename]
CONFIG -get dosbox memsize
CONFIG -get render scaler
CONFIG -l

Memory & Compatibility

LOADFIX

Allocate a block of conventional memory below the 64 KB boundary to work around programs that incorrectly assume low memory is free. This is often needed for old DOS games that crash because DOSBox-X’s environment data occupies the lowest memory addresses.
LOADFIX [-<kb>] [program] [args]
LOADFIX -f
LOADFIX program.exe
LOADFIX -64 program.exe
LOADFIX -128 game.exe /fast
LOADFIX -f
If a game crashes immediately with a memory error or produces garbage output, try LOADFIX game.exe before filing a compatibility report.

Drive Utilities

RESCAN

Force DOSBox-X to refresh its internal directory cache for a mounted drive. Use this after adding, removing, or modifying files from the host side (outside of DOSBox-X) while the drive is mounted.
RESCAN
RESCAN <drive:>
RESCAN /A
RESCAN
RESCAN C:
RESCAN /A
/A rescans all mounted drives at once.

LABEL

Set or change the volume label of a mounted drive.
LABEL [drive:] [label]
LABEL C: MYGAMES
LABEL D:

Keyboard & Input

KEYB

Change the active keyboard layout. DOSBox-X includes built-in support for a wide range of international keyboard layouts using the standard two- or three-letter country codes.
KEYB [layout] [codepage] [codepagefile]
KEYB
KEYB
KEYB DE
KEYB FR 850
KEYB UK
KEYB US
Running KEYB with no arguments displays the current keyboard layout and code page.

MOUSE

Control mouse capture and driver behaviour inside DOSBox-X.
MOUSE [/U] [/V]
OptionDescription
/UUninstall the DOSBox-X internal mouse driver
/VDisplay mouse driver version information

Display & Output

MODE

Configure display settings, code pages, and serial port parameters. Mirrors the functionality of the classic DOS MODE command.
MODE CON COLS=<n> LINES=<n>
MODE CON CP SELECT=<codepage>
MODE COM<n> BAUD=<rate> PARITY=<p> DATA=<d> STOP=<s>
MODE LPT<n>
MODE CON COLS=80 LINES=25
MODE CON CP SELECT=437
MODE COM1 BAUD=9600 PARITY=N DATA=8 STOP=1

MIXER

Adjust the volume levels and settings of DOSBox-X’s internal audio mixer from the command line.
MIXER [channel] [volume] [/LISTMIDI] [/NOSHOW]
MIXER
MIXER MASTER 80
MIXER SB 100:100
MIXER /LISTMIDI

System Information

INTRO

Display the DOSBox-X introduction screen with basic usage instructions and tips. Useful for new users.
INTRO
INTRO MOUNT
INTRO CDROM
INTRO SPECIAL
Running INTRO with a topic name shows specific help pages.

HELP

Display the built-in help listing all available shell commands (also accessible as a shell command directly).
HELP [command]
HELP /ALL

Text Mode Utilities

DOSBox-X includes several small programs on Z:\TEXTUTIL\ for switching the display into different text video modes:
ProgramMode
80X25.COM80×25 text mode
80X43.COM80×43 text mode (EGA)
80X50.COM80×50 text mode
80X60.COM80×60 text mode
132X25.COM132×25 wide text mode
132X43.COM132×43 wide text mode
132X50.COM132×50 wide text mode
132X60.COM132×60 wide text mode
DCGA.COMDouble-scanned CGA mode

Debug & Development Utilities

Control or query the emulated video frame rate.
VFRCRATE [rate]
View and edit VESA BIOS extension (VBE) mode parameters. Available when a SVGA or VESA machine type is active.
VESAMOED
Control the A20 address line gate, used for compatibility testing with memory managers and extended memory code.
A20GATE [ON|OFF|TOGGLE|PORT|FAST|MASK]
Trigger a Non-Maskable Interrupt for hardware-level debugging.
NMITEST
Run a diagnostic test against the emulated BIOS.
BIOSTEST
Enable logging of INT 2Fh multiplex interrupt calls to help debug TSR and network redirector interactions.
INT2FDBG [+|-]

Additional Z: Drive Executables

Beyond the programs above, DOSBox-X bundles a set of standard DOS utilities as pre-built executables embedded in the Z: drive. These are found in Z:\DOS\, Z:\BIN\, and related directories:
ProgramDescription
DEBUG.EXEClassic DOS debug utility for machine-code debugging
EDLIN.EXELine-by-line text editor (classic DOS editor)
EDIT.COMFull-screen text editor
FIND.EXESearch files for text strings
MEM.EXEDisplay conventional, extended, and expanded memory usage
MOVE.EXEMove files from one location to another
SORT.EXESort input lines and output the result
XCOPY.EXECopy files and directory trees
REPLACE.EXEReplace files in a target directory from a source
APPEND.EXEAppend directories to the search path for data files
FC.EXECompare two files and display differences
COMP.COMCompare two files byte-by-byte
DELTREE.EXEDelete a directory tree recursively
CHOICE.COMInteractive user-choice prompt
TREE.COMDisplay directory tree structure
FCBS.COMSet the number of FCB (File Control Block) entries
FILES.COMSet the maximum number of open files
LASTDRIV.COMSet the last drive letter available
DEVICE.COMLoad a device driver
BUFFERS.COMSet the number of disk buffers
SYS.COMTransfer DOS system files to a disk (non-PC98 only)
FORMAT.EXEFormat a disk (non-PC98 only)
DEFRAG.EXEDefragment a disk (non-PC98 only)
DISKCOPY.EXECopy floppy disk to floppy disk
PRINT.COMBackground print spooler
KEYB.COMChange the active keyboard layout
MODE.COMConfigure display, serial, and parallel ports
MOUSE.COMControl mouse capture and driver behaviour
LOADFIX.COMAllocate low memory to fix compatibility issues
LABEL.COMSet or change a drive volume label
The exact set of programs available on Z: depends on the machine type selected and the DOSBox-X build configuration. Some utilities (such as VESAMOED.COM) only appear when an appropriate machine type is active.

Build docs developers (and LLMs) love