Technical Notes |
|
Beginning in EXTRA! X-treme 9.0, you can launch EXTRA! using command line options. This feature offers a DOS command line-type interface for creating new configurations on the fly and starting EXTRA! with a predefined configuration. This technical note describes how to use the new feature and lists the parameters you can use with EXTRA!.
EXTRA! X-treme 9.0 includes new functionality that enables you to load EXTRA! using command line options. Use this feature by creating a shortcut with the required parameters, and then placing this shortcut in an accessible location, for example, the Microsoft Windows Desktop or as a link in a Microsoft Office Word document.
Review the following information prior to invoking EXTRA! from the command line:
If these default parameters are not correct for your connection, you must supply the appropriate parameters from the command line.
The majority of the command line parameters are optional and defaults are typically heavily relied upon so that users can create a connection by supplying only the required Host name or IP Address at the command line.
The ability to run EXTRA! from a command line was available on a limited basis prior to the EXTRA! X-treme 9.0 release. If you used this functionality with an earlier version of EXTRA!, you may have the following Windows registry settings:
| Key Name: |
Key Type: |
Data: |
| Default |
REG_SZ |
(Value not set) |
| EDPDestination |
REG_SZ |
C:\Program Files\Attachmate\... |
| EDPSource |
REG_SZ |
C:\Program Files\Attachmate\... |
If these Microsoft Windows registry settings exist, they will be migrated to the following Windows registry location, which is the location used beginning with EXTRA! X-treme 9.0:
| Name: |
Type: |
Data:(Default values used for illustration) |
| Default |
REG_SZ |
(Value not set) |
| EDPDestination |
REG_SZ |
<installdir>\Sessions\ENU |
| EDPSource |
REG_SZ |
<installdir>\Sessions\ENU |
| EDPImport |
REG_SZ |
<installdir>\Sessions\ENU\Template\3270.edp |
| Language |
REG_SZ |
ENU |
| Keymap |
REG_SZ |
<installdir>\Schemes\ENU\Extra! Office (101 key).ekm |
To run EXTRA! from the command line, you must have a copy of EXTRA! X-treme 9.0 or higher installed on your machine and be running Microsoft Windows 2000 or higher.
At the command prompt or from Start > Run, enter the following command:
extra.exe /h "<host name or IP address>"| /h |
Host AliasAlias name or Fully Qualified Domain Name (FQDN) of the Host system to establish connection to at startupor an IP Address. If an IP Address is supplied it can be of the format abc.def.ghi.jkl:zz where the portion after the colon (:) or the zz parameter specifies the remote TCP port for the connection to be established on. |
To use any of the optional parameters, you must also use the required /h parameter.
| /i |
Import settings for the connection from the Host template file (for EXTRA! X-treme 9.0 this is an *.EDP file containing default host session configuration information and typically found in the \Sessions\Templates directory) |
| /n |
No Logo (do not display the splash screen when EXTRA! is started) |
| /wt |
Window Title (display the supplied window title in EXTRA!) |
| /k |
Keyboard Map file to load (for EXTRA! X-treme 9.0 this is an *.EKM file containing keyboard configuration information and typically found in the \Schemes directory) |
| /s |
Source directory for the session configuration file (for EXTRA! X-treme 9.0 this is an *.EDP file containing host session configuration information and typically found in the \Sessions directory) |
| /d |
Destination directory (directory for temporary configuration file(s) to be stored in) |
| /m |
Run macro file as a startup macro (for EXTRA! X-treme 9.0 this is an *.EBM file containing a macro and typically found in the \Macro directory) |
Note: For the /i, /k, /s, /d, and /m parameters, use the fully qualified directory name to the EXTRA! directory, for example, c:\program files\attachmate\extra!\sessions\ENU\, or else make sure that the appropriate files are placed in the EDPSource or EDPImport directory as specified in Registry Settings.
Use the following command line format:
EXTRA.EXE /<option 1> "<value>" /<option 2> "<value>" ... /<option n> "<value>" Note: The "/" character is used as a separator to tokenize the options passed in from the command line, thus the option strings themselves may not contain the "/" character. Options can be specified in either upper or lower case.
EXTRA.EXE /h "198.162.1.1" /i "c:\this name has spaces\template.edp" /wt "Acme Corp"EXTRA.EXE /h "198.162.1.1:23" /nListed below is the default operation for each parameter when used individually as an option, (i.e. without a specific trailing value) or when not specified:
| /i |
Setting by itself or not specified on the command line will import settings from the default 3270 template file located at \Sessions\ENU\Template\3270.EDP. |
| /n |
If this option is not present, display the EXTRA! logo at session start. |
| /wt |
Setting by itself or not specified on the command line will use the standard EXTRA! window title. |
| /k |
Setting by itself or not specified on the command line will import settings from the default 101-key keyboard map file located at \Schemes\ENU\Extra! Office (101 key).ekm |
| /s |
Setting by itself or not specified on the command line will default to the source location for configuration *.EDP files: <installdir>\Sessions\ENU |
| /d |
Setting by itself or not specified on the command line will default to the destination location for temporary configuration files: <installdir>\Sessions\ENU |
| /m |
no default value if not present or used by itself. |
| /h |
no default value if not present or used by itself. |
Note: Typically the <installdir> for EXTRA! X-treme 9.0 is pointing to C:\Program Files\Attachmate\EXTRA! but this can be changed by the installer.
The following program logic is used by the command line feature and is helpful if problems are encountered in its operation.
If the /h parameter is available on the EXTRA.EXE command line the "command line mode of operation" for EXTRA! is enabled, which operates as follows:
The following features continue to be available in EXTRA! X-treme 9.0.
In versions 9.0 and earlier, to load EXTRA! from the command line, type extra.exe followed by the .EDP file name, without using double-quotes. For example, extra.exe session1.EDP
The /t option is already available for an EXTRA! command line to provide a quick connection option for VT/telnet or TN3270 communications.
Use the following syntax for the /t option:
"extra.exe -t telnet:\\<user>:<password>@<host>:<port>"or
"extra.exe -t tn3270:\\<user>:<password>@<host>:<port>"The EXTRA.EXE program can be registered with Microsoft Windows as the default Telnet client. This enables a shortcut to be created or a command, as shown below, to be entered at the Microsoft Windows Start > Run command line to start a Telnet session:
"telnet:198.162.1.1"