To facilitate batch files and automation, the MPFS2 Utility also supports execution from the command line. The syntax is as follows:
MPFS2.jar [options] <SourceDir> <ProjectDir> <OutputFile>
The SourceDir, ProjectDir, and OutputFile options are required and should be enclosed in quotation marks. The OutputFile option will be relative to ProjectDir, and cannot be a full path name.
The various option switches are described in the table below:
Switch |
Short |
Description |
/BIN |
/b |
Output a BIN image (Default) |
/C18_C32 |
/c |
Output a C18 or XC32 image |
/ASM16 |
/s |
Output an ASM16 image |
/mpfs2 |
/2 |
Use the MPFS2 format (Default) |
/html "..." |
/h "..." |
File types to be parsed for dynamic variables (Default: "*.htm, *.html, *.cgi, *.xml") |
/xgzip "..." |
/z "..." |
File types to be excluded from GZIP compression (Default: "*.bib, *.inc") |
The command-line interface does not support image uploads. For batch or production uploads, use a tool such as wget to upload the generated BIN image.