JSI Tip 8137. How can I create a cabinet file (.CAB) in Windows 2000 and later?

Starting with Windows 2000, Microsoft has included MAKECAB.EXE as a standard component.

When you open a CMD.EXE window and type makecab /?, you receive a display similar to:

Microsoft (R) Cabinet Maker - Version 5.1.2600.2142
Copyright (c) Microsoft Corporation. All rights reserved..

MAKECAB \[/V\[n\]\] \[/D var=value ...\] \[/L dir\] source \[destination\]
MAKECAB \[/V\[n\]\] \[/D var=value ...\] /F directive_file \[...\]

  source         File to compress.
  destination    File name to give compressed file.  If omitted, the
                 last character of the source file name is replaced
                 with an underscore (_) and used as the destination.
  /F directives  A file with MakeCAB directives (may be repeated).
  /D var=value   Defines variable with specified value.
  /L dir         Location to place destination (default is current directory).
  /V\[n\]          Verbosity level (1..3).
For more information on using MAKECAB.EXE, extract MAKECAB.DOC.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.