home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1989 / 22 / alias.doc < prev    next >
Text File  |  1989-11-13  |  4KB  |  72 lines

  1. UTILITIES  Ross Greenberg            
  2. Vol. 8, No. 21                      Filename:  ALIAS
  3.  
  4.  
  5. ALIAS
  6. Command
  7.  
  8. Douglas Boling and Jeff Prosise December 26, 1989 (Utilities)
  9.  
  10.  
  11. Purpose: A TSR utility that enables DOS command-line editing and recall of 
  12.          previously issued commands and that permits assignment of long 
  13.          commands and environment strings to short synonyms ("aliases") or 
  14.          function keys.
  15.  
  16. Format: ALIAS [?][/U][/D][/E][/L][/F [d:][path] filename ]
  17.     [/B nn][/M nn][/S nn][alias [command]]
  18.  
  19. Remarks: When loaded without any of its optional switches, ALIAS reserves a 
  20.          buffer size of 512 bytes for user-entered alias strings and a command
  21.          stack that permits recalling the last 16 commands issued.  These 
  22.          defaults (/B 512 and /S 16) can only be changed at load time.  At this
  23.          time, too, the /F switch can be used with a filename  (plus drive and
  24.          path)  containing regularly used aliases (see Note).
  25.  
  26.     Previously issued commands can be recalled to the command line with the
  27.         Up and Down Arrow keys.  When many commands are stacked, typing a few 
  28.         initial letters before hitting the recall key will speed retrieval by 
  29.         skipping commands that do not match the typed pattern.  Use the 
  30.         optional /M nn switch, where nn is a number, to set a minimum length of
  31.         command strings to be stacked.  The default, /M 1, remembers all 
  32.         commands.
  33.  
  34.     Whether recalled or newly typed, command-line entries can be edited 
  35.         when ALIAS is loaded.  The Left and Right Arrow keys move the cursor by
  36.         character; Ctrl-Left and Ctrl-Right move by word; and Home and End go 
  37.         to the line  ends.  The Del and Backspace keys delete characters; 
  38.         Ctrl-Backspace deletes the word at the cursor; and Ctrl-End deletes to
  39.         the end of the line.  Pressing Esc clears the command line and returns
  40.         to the bottom of the command stack.  The Ins key toggles between 
  41.         overstrike (the default) and insert mode for character entry on the 
  42.         command line. 
  43.  
  44.     The command ALIAS alias [command] is used to define an alias or command
  45.         synonym.  The alias variable may be any one-word alphanumeric string; 
  46.         the command variable  may contain multiple words and must end with a 
  47.         carriage return.  Defining an alias but omitting the command variable
  48.         removes a previous alias assignment.  Function keys and their Alt-, 
  49.         Shift-, and Ctrl- combinations may be used in place of alias by being 
  50.         designated thus: [Fn], [AFn], [SFn], [CFn], with 1 to 10 as the values 
  51.         of n.  An asterisk after the close bracket (for example, [F1]*) causes
  52.         immediate command-string execution when the function key is pressed; 
  53.         otherwise, Enter must also be pressed.  The command variable may 
  54.         include replaceable command-line parameters, (for example, %1), as in 
  55.         batch files.  Environment strings, such as a PATH string, may be used 
  56.         as the command variable by being placed between a pair of % signs, 
  57.         provided they do nral.
  58.  
  59.     A list of active aliases can be obtained at any time by entering ALIAS
  60.         with its /L switch.  Alias processing can be temporarily disabled with
  61.         the /D switch and reenabled with the /E switch.  ALIAS ? brings up a 
  62.         help screen.  The /U switch uninstalls ALIAS from memory, when 
  63.         possible.
  64.  
  65. Note:    A plain ASCII file containing regular user-defined aliases may be 
  66.         installed with the /F switch when ALIAS is loaded, as, for example,
  67.         ALIAS /F C:\BIN\MYALIAS.TXT.  This file may be up to 32K and may also 
  68.         contain ALIAS optional switches.  Note that // and /* may be used to 
  69.         add comments on the remainder of a line and that blank lines are not 
  70.         processed.
  71.     
  72.