Command Line Options
The redistributable MenuBox component consists of a single executable file named "menubox.exe", which can be run in all contexts where executable files can be launched (from the command line, from an "autorun.inf" file, etc.) The software is digitally signed using Microsoft Authenticode technology, which makes it possible to verify both the origin and the integrity of the file.
Like all Windows executable files, MenuBox can be launched either as "menubox.exe" or as "MenuBox.exe", "menubox" or "MenuBox" (case insensitive, with or without the ".exe" suffix), however indicating the complete file name (with the extension) may result in slightly faster access to the file. "menubox.exe" may be renamed (e.g. to "setup.exe" or "autorun.exe") without affecting its functionality, file properties or digital signature.
If MenuBox is launched without command line options, then the software tries to open the default configuration file ("menubox.ini" or a matching localized version, e.g. "menubox-de.ini", etc.) in the directory containing the MenuBox executable file. If "menubox.exe" is renamed then the default base name of the configuration file is changed accordingly (e.g. if "menubox.exe" is renamed to "autorun.exe" then "menubox.ini" becomes "autorun.ini", etc., as long as no /m option is used to explicitly set the name of the configuration file).
The format of the command line options is:
menubox.exe [file] [/x86:file] [/x64:file] [/p:parameters] [/d:current-dir] [/v:verb] [/s:show] [/a] [/w] [/m:ini-file] [/?]
The following options are available.
| Option |
Description |
| file |
Document or executable file. If omitted, MenuBox processes the default configuration file or the file referenced by /m. |
| /x86:file |
Identical to file, but only executes the file on an x86 operating system. If present, file is ignored. May be combined with /x64 to open or execute different files on different systems. |
| /x64:file |
Identical to file, but only executes the file on an x64 operating system. If present, file is ignored. May be combined with /x86 to open or execute different files on different systems. |
| /p:parameters |
Command line parameters to be passed to the executable file, e.g. /p:"param1 param2 param3". |
| /d:current-dir |
Changes the current drive and directory for the launched application. Supports absolute and relative paths. When launched from autorun.inf paths are relative to the root of the medium by default. |
| /v:verb |
Action to be performed, e.g. "edit", "explore", "print", "properties", etc. The default action for most document types is "open". |
| /s:show |
Show options, e.g. "minimized", "maximized", etc. The default is "normal". |
| /a |
Add absolute path information to the file argument. |
| /w |
Wait for the launched application to exit. |
| /m:ini-file |
Process a MenuBox configuration file, which supports conditional code, menu windows and other advanced features. Defaults to "menubox.ini". Optional additional file ending with "-xx.ini" (where "xx" is language code as per ISO 639-1) is given priority if language code matches current user locale. |
| /? |
Display help information. |
The documentation of the corresponding keys as they are used in the [Windowless] section of the configuration file includes a more detailed description of each option.
|