Up Previous Next Title Page Index Contents

5.5 Command line operations

This chapter describes the ways to start instances of MetaEdit+ by utilizing the command line parameters and operations. The basic version of MetaEdit+ carries only a small set of command line parameters providing the operations for filing in patches and setting up the optional second monitor. Command line parameter support for advanced operations is supplied in API add-on – for more information about these parameters and operations see ‘MetaEdit+ Workbench User’s Guide’.

The following table summarizes the command line parameters available in standard version of MetaEdit+ users and their usage:
Command
Usage
fileInPatch:
Files in an image, type or model patch (*.pat)
fileInPatches
File in patches named in file patches.txt in either this directory or subdirectory patches (path names can be absolute or relative to patches.txt), or then file in all *.pat files in subdirectory patches
monitor2left:top:width:height:
Set a second monitor position (top left of 2nd monitor measured from top left of 1st monitor) and size. For two 1600x1200 monitors, the arguments would be 1600 0 1600 1200
All the commands have the same structure: the first parameter is a command name. The command name shows how many arguments it expects according to the number of colons in the name: fileInPatches expects no arguments, fileInPatch: expects one argument, and monitor2left:top:width:height: expects four arguments. Note that for commands that expect arguments, there are no spaces in the command name, and the last character is always a colon. After a command name expecting N arguments, the next N parameters on the command line will be used as those arguments.

As an example, consider the following command line that would file in foo.mep patch file and setup a second 1600x1200 monitor at the MetaEdit+ start-up:
mep4.exe fileInPatch: foo.mep monitor2left:top:width:height: 1600 0 1600 1200
Here, mep4.exe is the name of the MetaEdit+ program executable. The first parameter given to the executable is fileInPatch: with its arguments foo.mep. The second argument, monitor2left:top:width:height:, follows then with its four arguments.

Up Previous Next Title Page Index Contents