Command line switches are used to specify EMUE settings when running EMUE from a Windows shortcut, batch file, or scheduled job. Switches are specified by using a forward slash ("/") or dash ("-"), the switch name followed by a space, and the desired value in quotation marks. Below is a list of command line switches and how they are used by EMUE.
Switch
|
Purpose
|
Allowed Values
|
AutoStartFile
|
When this switch is included in the command line it instructs EMUE open and process the specified script using the standard size EMUE window.
|
A valid path and filename for a file that contains an EMUE script.
|
AutoStartSmall
|
When this switch is included in the command line it instructs EMUE to open and process the specified script using the small size EMUE window.
|
A valid path and filename for a file that contains an EMUE script.
|
CommandLineValue
|
When this switch is included, the value provided will be available inside as the built-in variable &CommandLineValue.
|
A string value. If the string has spaces in it, the entire string must be enclosed in quotes.
|
Sample:
The following sample executes EMUE using the small window size. (This sample should all be typed on one line)
"C:\Program Files\Databound Solutions\EMUE V5\EMUE.EXE" /AutoStartSmall "C:\Emue\Scripts\TestScript.emue" /CommandLineValue "Central Hospital"
The following command line switches were supported in previous versions of EMUE and they are still supported. It is recommended that the switches above be used to instruct EMUE to perform the functions noted below.
Switch
|
Purpose
|
Allowed Values
|
AutoStart
|
This switch is used to set the value of the Auto Start checkbox in the interface.
|
Yes
|
StartMinimized
|
This switch is used to instruct EMUE what size window to open when it executes. A value of “Yes” will cause EMUE to open in a smaller sized window, allowing for easier viewing of multiple scripts. When valued with a “No”, or if it is left out of the command line, EMUE opens a full sized window.
|
Yes / No
|
GetFileStartupInfo
|
This switch is ignored by this version of EMUE. In previous versions his command would instruct EMUE to process the SetStartup commands upon opening the script file. In the current version of EMUE the SetStartup commands are processed automatically every time a script is opened.
|
Yes
|
ScriptFileName
|
This switch identifies the file containing the EMUE script that EMUE will process.
|
A valid path and filename for a file that contains an EMUE script.
|
|