MPQ Editor Command line
Opening a single MPQ
MPQEditor.exe MpqName [/listfile ListFileName]
Opens a MPQ. If you enter a listfile name, this listfile
will be used as external listfile to the MPQ. If the MPQ
already has a listfile, then both those listfiles are combined.
Opening a multiple MPQs in multi-document mode
MPQEditor.exe /multi BaseMpq1 BaseMpq2 BaseMpq3 ... BaseMpqN [/patch PatchMpq1 PatchMpq2 ... PatchMpqN] [/listfile ListFileName]
Opens multiple MPQs in multi-document mode. Additional listfile may be added.
Opening a multiple MPQs in merged mode
MPQEditor.exe /merged BaseMpq1 BaseMpq2 BaseMpq3 ... BaseMpqN [/patch PatchMpq1 PatchMpq2 ... PatchMpqN] [/listfile ListFileName]
Opens multiple MPQs in merged mode. The user will only see one tree,
where all the files will be combined. This is how the game sees
all MPQs.
Opening a MPQ in patch mode
MPQEditor.exe /base BaseMpq1 BaseMpq2 /patch PatchMpq1 PatchMpq2 ... PatchMpqN [/listfile ListFileName]
Opens multiple MPQs in patch mode. You have to enter all patches
that belong to a MPQ. When extracting a file in patch mode, then
the extracted file will allways be the latest version, i.e. from base
MPQ with all subsequent patches applied.
Running MPQEditor in console mode
MPQEditor.exe /console [ScriptName]
Opens a MoPaq 2000 console. If a script name is entered, it is executed immediately.
Using MoPaq 2000 commands from command line
MPQEditor supports executing MoPaq 2000 commands directly from command line.
They can be executed either with or without opening console window. The difference
is to use or not to use slash before the command.
This is an example to run a command without opening a console:
MPQEditor.exe extract war3.mpq * C:\Work /fp
This is an example to run a command with opening a console:
MPQEditor.exe /extract war3.mpq * C:\Work /fp