.DDF

DDF File

Diamond Directive File (.ddf)
Ask a question
QUICK ANSWER

A DDF file (Diamond Directive File) is a small plain-text script that tells Microsoft's MakeCAB tool which files to pack into a .cab cabinet archive and how to compress them. Open it in Notepad to read or edit it, and run it with the command: makecab /f yourfile.ddf. It is a developer build file - not a document, not a program.

Developer: Microsoft Corporation Category: Settings Files MIME: text/plain
OPENS ON Windows
Related: .ICA · .DS_STORE · .WMZ · .CFG

On this page

19k+ extensions indexed
Last reviewed Jul 26, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DDF file format?

.ddf files are used by the Windows family of operating systems. They specify .cab (Cabinet) archive compression properties, directing the makecab.exe tool on how to build a cabinet package. Windows uses .cab files as installation archives for applications, drivers, and system components.

A .ddf file controls which compression algorithm the resulting cabinet will use. The three supported algorithms are:

  • MSZIP (compatible with ZIP)
  • LZX
  • Quantum

.ddf files also store detailed settings for the compression algorithm - output cabinet name, disk directory, folder boundaries, and other packaging parameters. The directive syntax uses dot-prefixed keywords (.Set, .New, .Delete) alongside source-file paths to be packed.

Importantly, .ddf files are not saved within the resulting .cab archive - they are purely build-time input scripts. To generate a cabinet from a .ddf, run: makecab /f yourfile.ddf.

Because .ddf files store data in plain text, they can be opened in any text editor or word processor. However, the directive syntax is specific to the MakeCAB/Diamond toolchain, so it is not recommended to edit a .ddf manually without understanding that syntax.

Security & safety

RISK: LOW

A DDF is a small text script and is safe to read in any editor. The only caution: the source files it lists are what get packed into a CAB, so if you build a cabinet from an untrusted DDF, inspect which files it references. The DDF itself cannot execute on its own - it only does anything when passed to makecab.

Format details

in a nutshell
FULL NAMEDiamond Directive File (.ddf)aka MakeCAB Directive File, Cabinet (CAB) Directive File
DEVELOPERMicrosoft Corporationsince 1990s (Microsoft Cabinet SDK / Diamond cabinet tool)
MIME TYPEtext/plain
TYPEPlain-text directive script that controls CAB creation by MakeCAB / Diamond (diamcab)
This extension is also used by…
  • Btrieve / Pervasive Data Dictionary File - In Btrieve/Pervasive PSQL databases, FILE.DDF (plus FIELD.DDF, INDEX.DDF) defines table/column metadata.
  • Amiga / generic data file - Various legacy applications used .ddf for assorted data dictionaries or settings.

Programs that open DDF files

Windows3 apps
Notepad Built-in Right-click the .ddf > Open with > Notepad to read or edit the directives.
MakeCAB (makecab.exe) Built-in In a command prompt run: makecab /f yourfile.ddf - this executes the directives to build the .cab.
Notepad / VS Code Open-source Open the .ddf for editing with syntax highlighting and larger-file handling.

Technical details

deep spec
File typePlain-text build directive script (ASCII or UTF-8)
PurposeInput script consumed by makecab.exe (Diamond) to generate Windows Cabinet (.cab) archives
Directive syntaxDot-prefixed keywords (.Set, .New, .Delete, .Option) plus one source-file path per non-directive line
Supported compressionMSZIP (ZIP-compatible), LZX, Quantum - specified via .Set CompressionType=
Cabinet outputDoes not produce a cabinet itself; passed to makecab.exe /f file.ddf to generate the .cab
DDF inclusion in CABNot embedded in the resulting .cab - purely a build-time input script
Typical file sizeUnder 1 KB to a few KB (a list of directives and source-file paths)
CAB capacityThe produced .cab supports up to ~65,535 files; individual cabinet folders up to 2 GB
Associated toolmakecab.exe (built into Windows) and the Microsoft Cabinet SDK
MIME typetext/plain (no registered MIME type; identified by the .ddf extension)
OS supportWindows (makecab.exe is a Windows-specific tool)
EncodingText (ASCII/ANSI; UTF-8 also accepted for paths with non-ASCII characters)
Released1990s (Microsoft Cabinet SDK / Diamond cabinet tool)
Latest versionStable; consumed by makecab.exe (Windows) and the Cabinet SDK
Specificationlearn.microsoft.com

DDF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DDF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DDF files.

Frequently asked questions

How do I open a DDF file?
It's plain text - open it in Notepad (or Notepad++/VS Code). It contains directives that tell Microsoft's makecab tool how to build a .cab archive.
How do I build a CAB from a DDF file?
Open a command prompt in the folder and run: makecab /f yourfile.ddf. MakeCAB reads the directives and creates the cabinet.
Is a DDF file a program or a document?
Neither - it's a build/directive script. It does nothing by itself; it's input for the makecab utility.
Is this the same DDF as in a Btrieve/Pervasive database?
No. Those are unrelated data-dictionary files (FILE.DDF/FIELD.DDF/INDEX.DDF). This KB covers Microsoft's Diamond Directive File for building cabinets.
Can I edit a DDF in WordPad?
Avoid it - WordPad is a rich-text editor and may add formatting. Use Notepad or Notepad++ to keep it as clean plain text. (WordPad has also been removed from current Windows.)

References

1Microsoft Learn - Makecab.exelearn.microsoft.com
2Microsoft Learn - Cabinet (.cab) fileslearn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.PARTPartial Download File
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.BINCD/DVD Disc Image (BIN/CUE)
8.DLLDynamic Link Library
9.JPGJPEG Image
10.M4AMPEG-4 Audio File

Related extensions

.ICACitrix Independent Computing Architecture file
.DS_STOREmacOS Finder Desktop Services Store (.DS_Store)
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z