!bind – Bind a string

Use this console command to bind a string to a function key.

Format

Read syntax diagramSkip visual syntax diagram!bind  CTRL+SHIFT+ F number string +
CTRL
specifies the control key.
SHIFT
specifies the shift key.
Fnumber
specifies the function key, where number is a decimal number from 1 to 12.
string
is a TPF Operations Server or TPF command, or another console command prefixed with an exclamation point (!).
+
specifies that the command is to be processed immediately when you press the function key. If you do not specify the + character, the command string is placed in the command entry area of the graphical user interface (GUI) console when you press the function key.

Additional information

You can also add bind keys from the following:
  • The Key Bindings menu in the console window.
  • Session configuration files.

When the key bindings menu option is disabled from a session configuration file, this command is deactivated.

Examples

The following command defines function key 5 (F5) to process the ZSTAT command immediately.
!bind F5 zstat+
The following command defines function key 4 (F4) to run notepad.exe.
!bind SHIFT+F4 !cmd notepad.exe
The following command defines function key 8 (F8) to run the raven.bat file.
!bind CTRL+F8 !cmd raven.bat

Related information