Command Line

Rainbow can be executed from the command line if needed.

The general syntax is:

C:/>Rainbow [<parameter> [<parameter [...]]]

Like for any other Windows executable, to invoke Rainbow from a command line, you must either add the location of rainbow.exe in your PATH environment variable, or use the full path to rainbow.exe in the command line.

The parameters of the command line are not case-sensitive. You can also use either a '/' or a '-' to prefix the commands. For example, the commands /Q, /q, -Q, and -q are exactly equivalent.

The commands are executed in the same order as they are in the command line.

The parameters you can use are the following:

Parameter Description
/E <UtilitySetId>:<UtilityId> Executes the utility <UtilityId> of the utility set <UtilitySetId>. Note that the utilities you use in command-line mode do not have to be listed in the Utilities menu.
/Q Exits Rainbow. This command is executed only if there are no error and no warning in the Log. Use /QF to exit without check.
/QF Exists Rainbow, regardless of the Log.
/S Saves the current project file.
/SA <ProjectFile> Save the current project as a new project file named <ProjectFile>.
<ProjectFile> Loads <ProjectFile> as the current project file.
/NOMRU <ProjectFile> Loads <ProjectFile> as the current project file, but do not add it in the list of most recent used files (shown in the  Recent Projects sub-menu).

Here are a few examples of command lines:

C:\>Rainbow MyProject.rbp /e oku_set01:extraction /q

This command starts Rainbow, loads the project file MyProject.rbp, then executes the Text Extraction utility with whatever parameters and input files are set in the project file. When it's done, Rainbow is closed.

C:\>Rainbow MyProject.rbp

This command starts Rainbow and loads the project file MyProject.rbp. Rainbow stays open when the command line has been executed.