home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / os2 / 4os2b.zip / UPDAT20.DOC < prev    next >
Text File  |  1993-12-16  |  20KB  |  523 lines

  1.  
  2.                                   JP Software
  3.  
  4.                            4OS2 Update Documentation
  5.  
  6.                        Version 2.0 -- December 16, 1993
  7.  
  8.    [Copyright 1992 - 1993, JP Software Inc., All Rights Reserved. 
  9.    Published by JP Software Inc., P.O. Box 1470, E. Arlington, MA 02174
  10.    USA, (617) 646-3975.  4OS2, 4OS2/16, and 4OS2/32 are trademarks and 4DOS
  11.    is a registered trademark of JP Software Inc.  OS/2 is a trademark of
  12.    IBM Corporation.  Other product and company names are trademarks of
  13.    their respective owners.]
  14.  
  15.  
  16.    There are dozens of new features in this latest release of 4OS2!  Check
  17.    through this file for a comprehensive list of what's changed since
  18.    version 1.1.
  19.  
  20.    This file does not explain how to use the new features.  Be sure to
  21.    check the Reference Manual or online help for complete details on each
  22.    feature.
  23.  
  24.    Some of the descriptions below may be more detailed than you need; if
  25.    you aren't using a feature, feel free to skip to the next item.  If you
  26.    are new to 4OS2 with version 2.0, you can skip this file entirely, and
  27.    begin with the 4OS2 Introduction and Installation Guide.
  28.  
  29.    This file is divided into the following sections:
  30.  
  31.           General Features and Enhancements
  32.           Startup, Initialization, and 4OS2.INI
  33.           Command Line Editing and History
  34.           Aliases
  35.           Command Changes and Enhancements
  36.           Variables and Variable Functions
  37.  
  38.    Major new features and those which affect most users are marked with
  39.    "**" in the lists below.  Other items discuss smaller or more technical
  40.    changes.
  41.  
  42.    This file is formatted at 58 lines per page, and contains form feeds and
  43.    page footers.  It can be viewed with a file viewer such as the 4OS2 LIST
  44.    command, or printed on most PC printers using the command:
  45.  
  46.                   copy updat20.doc prn
  47.  
  48.    Printing it with a program that formats the pages is not likely to work
  49.    due to the formatting included in the file.
  50.  
  51.  
  52.                                                                   (12/93-A)
  53.  
  54.  
  55.  
  56.  
  57.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 1
  58.  
  59.  
  60.  
  61.                              4OS2 2.0 Change List
  62.  
  63.  
  64.    General Features and Enhancements
  65.    ---------------------------------
  66.  
  67.    => **  Date, time, and size ranges are now available for all file
  68.           processing commands:  ATTRIB, COPY, DEL, DESCRIBE, DIR, FOR,
  69.           LIST, MOVE, RD, REN, SELECT, and TYPE.  Ranges allow you to
  70.           select files for processing based the date or date and time a
  71.           file was last modified (a date range); the modification time only
  72.           (a time range); the file size (a size range); or a combination of
  73.           these.  This is a powerful feature which substantially expands
  74.           your file selection capabilities.
  75.  
  76.    => **  .BTM files can now be compressed (and thereby "encrypted") with
  77.           the new BATCOMP utility.  4OS2 reads and processes compressed
  78.           .BTM files just as it they were normal (uncompressed) files. 
  79.           This makes it easy for PC and network managers to distribute
  80.           batch files whose contents cannot readily be altered by the end
  81.           user.  (The compression algorithm used is designed for fast,
  82.           simple decompression, not extraordinarily efficient compression
  83.           ratios.  Therefore its primary value is for batch file
  84.           distribution, not reduced disk usage.)
  85.  
  86.    => **  The maximum file description length has been increased to 200
  87.           characters, and the entire description is now displayed in the
  88.           DIR output.
  89.  
  90.    => **  The prompt options for COPY, DEL, GLOBAL, MOVE, and REN have a
  91.           third option now:  'R' (Remainder) turns off the Y/N/R prompt and
  92.           performs the operation on the remainder of the matching files.
  93.  
  94.    =>     Commands that take a /P to pause output at the end of each page
  95.           (ALIAS, DIR, SET, etc.) now accept an Esc as a "quit" character.
  96.  
  97.    =>     Popup windows for the history lists, @SELECT, and filename
  98.           completion now support horizontal scrolling.  A left or right
  99.           arrow will move the window 4 columns.
  100.  
  101.    =>     Executable extensions can now call aliases as well as internal
  102.           and external commands.
  103.  
  104.    =>     The 4OS2 "prefix" commands (EXCEPT, FOR, GLOBAL, IF, and SELECT)
  105.           parse their arguments slightly differently.  This should help
  106.           simplify batch files, and improve compatibility with CMD.EXE.  As
  107.           a general rule, the need for multiple % signs and escape
  108.           characters on the line after such commands has been dramatically
  109.           reduced.  If you have complex prefix commands with multiple %
  110.           signs, back-quotes, or escape characters in the command to be
  111.           executed you may have to edit them slightly to accommodate this change.
  112.  
  113.  
  114.  
  115.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 2
  116.  
  117.  
  118.  
  119.    Startup, Initialization, and 4OS2.INI
  120.    -------------------------------------
  121.  
  122.    =>     4START is now passed the startup command line as batch file
  123.           arguments.  This allows you to determine what parameters an
  124.           application is passing to a secondary shell.
  125.  
  126.    =>     There are several new or changed 4OS2.INI directives:
  127.  
  128.       **      BrightBG = Yes | NO:  Set to Yes to enable bright background
  129.               displays rather than blinking text on EGA and VGA systems. 
  130.               See the section on Colors and Color Names in the manual or
  131.               online help before using BrightBG.
  132.  
  133.               Descriptions = YES | No:  Enables or disables processing of
  134.               file descriptions in COPY, DEL, MOVE, and REN.
  135.  
  136.               HistCopy = Yes | NO:  If set to YES, 4OS2 will copy a command
  137.               recalled from the history back to the end of the history
  138.               list.
  139.  
  140.               HistLogName = filename:  Specifies the default name for the
  141.               history log file.
  142.  
  143.               INIQuery = Yes | NO:  If set to Yes, 4OS2 will display a
  144.               prompt after each subsequent line in the current INI file.
  145.  
  146.       **      InputColors = Color:  4OS2 will display your command line
  147.               input in the specified color.
  148.  
  149.               ListStatBarColors = Color:  Sets the LIST status bar colors.
  150.  
  151.               SelectColors = Color:  Sets the SELECT screen colors.
  152.  
  153.               SelectStatBarColors = Color:  Sets the SELECT status bar
  154.               colors.
  155.  
  156.    =>     4OS2 now allows non-4OS2 section names (names other than
  157.           [Primary] or [Secondary] in 4OS2.INI.  Directives in such
  158.           sections are ignored.
  159.  
  160.  
  161.    Command Line Editing and History
  162.    --------------------------------
  163.  
  164.    => **  There is a popup directory history window which shows recent
  165.           directories you've used.  (THis feature was present in 4OS2 1.11,
  166.           but was not documented in the manual.)  To pop up the window,
  167.           press Ctrl-PgUp.  Select a line and press Enter to return to the
  168.           highlighted directory.
  169.  
  170.  
  171.  
  172.  
  173.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 3
  174.  
  175.  
  176.    => **  There is a new filename completion window.  F7 or Ctrl-Tab will
  177.           pop up a pick-list window of all the matching files, and Enter
  178.           will insert the selected filename into the command line.
  179.  
  180.    => **  You can set the colors for input you type at the prompt with the
  181.           new InputColors directive in 4OS2.INI.
  182.  
  183.    =>     You can control whether recalled history lines are copied to the
  184.           end of the history with the new HistCopy directive in 4OS2.INI.
  185.  
  186.    =>     History saves are now case-sensitive.
  187.  
  188.  
  189.    Aliases
  190.    -------
  191.  
  192.    => **  There is a new kind of keystroke alias.  If you preface the key
  193.           name with two @ symbols, 4OS2 will execute the command
  194.           immediately, without echoing the alias.
  195.  
  196.    => **  If you enter an unknown command, 4OS2 will now look for an alias
  197.           "UNKNOWN_CMD", and will execute that alias after appending the
  198.           command line.  WARNING: If the UNKNOWN_CMD alias contains an
  199.           unknown command, your system will loop forever!
  200.  
  201.    =>     ALIAS /R files can have lines continued if the line ends in an
  202.           escape character.
  203.  
  204.  
  205.    Command Changes and Enhancements
  206.    --------------------------------
  207.  
  208.    =>     ATTRIB will now append a "\*.*" to a directory name, unless you
  209.           specified the /D option.
  210.  
  211.    =>     COPY, DEL, MOVE, and REN have a new switch:  /T(otal) to display
  212.           file counts only.  This disables the display of file names (like
  213.           /Q), but still displays the totals.
  214.  
  215.    =>     DEL displays the disk space freed in the summary line.
  216.  
  217.    => **  DIR has several changes:
  218.  
  219.               * Descriptions can be up to 200 characters long.  Those which
  220.               are too long to fit on the screen will be word-wrapped at the
  221.               right edge of the screen.
  222.  
  223.               * New switches and switch changes:
  224.  
  225.                   /H:  (New) Do not display "." and "..".
  226.  
  227.  
  228.  
  229.  
  230.  
  231.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 4
  232.  
  233.  
  234.                   /I:  (New) Display only those files whose descriptions
  235.                   match the specified text.  The text can include any of
  236.                   the 4OS2 extended wildcards; the search is case
  237.                   insensitive.
  238.  
  239.                   /R:  (New) Disable long description wrapping.  If /R is
  240.                   used for on-screen display the description is truncated
  241.                   with a right arrow.  In redirected output the entire
  242.                   description is sent to the output device as one long
  243.                   line.
  244.  
  245.    => **  DO is a new loop control command for batch files.  You can use
  246.           several methods to control the loop:
  247.  
  248.               DO n:  Repeat the loop n times.
  249.  
  250.               DO FOREVER:  Repeat the loop until you exit with LEAVE or
  251.               GOTO.
  252.  
  253.               DO var = start TO end [BY n]:  Repeat the loop until the
  254.               variable passes the end value.
  255.  
  256.               DO WHILE condition:  Repeat the loop while the condition is
  257.               true (the condition can be any of those available in the IF
  258.               and IFF commands).
  259.  
  260.               DO UNTIL condition:  Repeat the loop until the condition
  261.               becomes true.
  262.  
  263.           A loop terminates with an ENDDO.  You can use ITERATE to return
  264.           to the start of a loop, and LEAVE to exit a loop.
  265.  
  266.    =>     DRAWBOX has a new ZOOM option.
  267.  
  268.    =>     IF and IFF now support decimals in numeric tests.
  269.  
  270.    =>     INKEY has two new switches:
  271.  
  272.               /C:  Clears the keyboard buffer before accepting input.
  273.               /P:  Does not echo your input (for passwords).
  274.  
  275.    =>     INPUT has four new switches:
  276.  
  277.               /C:  Clears the keyboard buffer before accepting input.
  278.               /E:  Displays and allows you to edit an existing value.
  279.               /L:  Sets the maximum input length.
  280.               /P:  Displays asterisks for your input (for passwords).
  281.  
  282.    => **  KEYBD is a new command to toggle the state of the Caps Lock, Num
  283.           Lock, and Scroll Lock keys.
  284.  
  285.    => **  LIST has been completely rewritten and offers many new features:
  286.  
  287.  
  288.  
  289.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 5
  290.  
  291.  
  292.               * Line and column numbers are displayed, and you can go to a
  293.               specific line.
  294.  
  295.               * Hexadecimal display, print, and search are now supported.
  296.  
  297.               * You can pop up a window with the current fully expanded
  298.               filename, size, date and time.
  299.  
  300.               * LIST is significantly faster.
  301.  
  302.    =>     LOG now supports a "history" log, which is independent from the
  303.           regular command log.  The history log saves the original commands
  304.           entered into the history list, without the date and time
  305.           information stored in the normal log file, and before alias and
  306.           variable expansion.  You can use it as an aid in writing batch
  307.           files or creating a history file which can be reloaded later.
  308.  
  309.    => **  MD has a new switch:  /S builds all necessary intermediate
  310.           directories.  For example, MD /S \DIR1\DIR2\DIR3 will create all
  311.           three directories if necessary.
  312.  
  313.    =>     MOVE will now display the space freed (if any), like DEL.  MOVE
  314.           also supports the /F(orce delete) option in the 32-bit version of
  315.           4OS2, under OS/2 2.x; a /F will delete the file without saving it
  316.           to the "undelete" directory.
  317.  
  318.    => **  ON is a new error-handling command for batch files:
  319.  
  320.               ON BREAK command:  Execute the command when a ^C or ^Break is
  321.               detected.
  322.  
  323.               ON ERROR command:  Execute the command after an OS/2 or 4OS2
  324.               error.
  325.  
  326.    =>     REBOOT has a new switch:  /S does a shutdown (without rebooting).
  327.  
  328.    =>     SCREEN, SCRPUT, and VSCRPUT now accept row and column offsets
  329.           relative to the current cursor position.  To specify a relative
  330.           offset, rather than an absolute row or column, use a + or -
  331.           before the argument.
  332.  
  333.    =>     SELECT now supports the /CP and /CHP compression switches, and
  334.           the /I switch to select files by description (see DIR for
  335.           details).
  336.  
  337.    => **  SETDOS has four new options:
  338.  
  339.               /B:  Sets your video board for blinking text (/B0, the
  340.               default) or bright background colors (/B1).  See the section
  341.               on colors and color names in the manual for details before
  342.               using this option.  Also see the BrightBG directive in
  343.               4OS2.INI.
  344.  
  345.  
  346.  
  347.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 6
  348.  
  349.  
  350.               /D:  Enables (/D1, the default) or disables (/D0) description
  351.               processing for COPY, DEL, MOVE, and REN.  Also see the
  352.               Descriptions directive in 4OS2.INI.
  353.  
  354.               /X:  Controls command parsing.  You can enable or disable
  355.               alias and variable expansion, multiple and conditional
  356.               commands, redirection and pipes, command grouping, quoting,
  357.               and the escape character.  For use in batch files to avoid
  358.               problems with special characters in text strings.
  359.  
  360.               /Y:  Enables (/Y1) or disables (/Y0) single-step operation in
  361.               batch files.  Use this option for batch file debugging.
  362.  
  363.    => **  START has a new /WIN3[S] switch to start seamless Windows
  364.           sessions in enhanced or standard mode, with an optional WIN-OS/2
  365.           settings file.  /WIN3S is only available in the 32-bit version of
  366.           4OS2.
  367.  
  368.    =>     WINDOW can now set the window size and position, as well as the
  369.           title and window state.
  370.  
  371.  
  372.    Variables and Variable Functions
  373.    --------------------------------
  374.  
  375.    (When using variables and variable functions remember that the name must
  376.    be preceded by a "%" sign:  %+, %_DAY, %@FILEOPEN, etc.):
  377.  
  378.    =>     The _CPU variable now returns "586" for Pentium processors.
  379.  
  380.    => **  The new internal variables are:
  381.  
  382.               Variable    Returns
  383.               --------    -----------------------------------------------
  384.               =           the current escape character (can be embedded in
  385.                           commands, but cannot be ECHOed)
  386.               +           the current command separator (can be embedded in
  387.                           commands, but cannot be ECHOed)
  388.               _BG         now includes bright background colors when
  389.                           appropriate
  390.               _COUNTRY    the country code
  391.               _DAY        the day of the month (1 - 31)
  392.               _DOY        the day of the year (1 - 366)
  393.               _HOUR       the hour (0 - 23)
  394.               _HLOGFILE   the name of the current history log file
  395.               _LOGFILE    the name of the current log file
  396.               _MINUTE     the minute (0 - 59)
  397.               _MONTH      the month of the year (1-12)
  398.               _SECOND     the second (0 - 59)
  399.               _SYSERR     the error code for the most recent DOS error
  400.               _WINTITLE   the title of the current session
  401.               _YEAR       the year (1980-2099)
  402.  
  403.  
  404.  
  405.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 7
  406.  
  407.  
  408.    =>     You can now include commas in the result of @FILESIZE and other
  409.           similar functions by following the units character (b|B|k|K|m|M)
  410.           with a 'c'.  For example, "@filesize[4os2.exe,bc]" will display
  411.           the size of 4OS2.EXE in bytes, with a comma every three digits.
  412.  
  413.    =>     @FILESIZE will now return the total size of all matching files if
  414.           you specify wildcards in the filename.
  415.  
  416.    => **  The new variable functions are:
  417.  
  418.                   (Be sure to read the manual or online help before using
  419.                   the @FILECLOSE, @FILEOPEN, @FILEREAD, @FILESEEK, or
  420.                   @FILEWRITE functions.)
  421.  
  422.               @CDROM[d:]:  Returns 1 if the drive is a CD-ROM, 0 if not.
  423.  
  424.               @DEC[var]:  Returns the decremented value of a variable (the
  425.               same as %@EVAL[var-1]).
  426.  
  427.               @FILEAGE[fname]:  Returns the date and time as a single
  428.               numeric value (useful for comparing file dates and times).
  429.  
  430.               @FILECLOSE[n]:  Close the file whose handle is "n".
  431.  
  432.               @FILENAME[fname]:  returns the name + extension (no path)
  433.  
  434.               @FILEOPEN[filename,read | write | append]:  Opens the file in
  435.               the specified mode and returns the file handle.
  436.  
  437.               @FILEREAD[n]:  Reads a line from the file whose handle is
  438.               "n".
  439.  
  440.               @FILES[filename]:  Returns the number of files matching the
  441.               filename specification.
  442.  
  443.               @FILESEEK[handle,offset,start]:  Seeks to the specified
  444.               offset in the file whose handle is "n".
  445.  
  446.               @FILEWRITE[n]:  Writes a line to the file whose handle is
  447.               "n".
  448.  
  449.               @FINDFIRST[fname,[nrhsa]]:  Find the first matching file and
  450.               return its name.
  451.  
  452.               @FINDNEXT[fname,[nrhsa]]:  Find the next matching file.
  453.  
  454.               @INC[var]:  Returns the incremented value of a variable (the
  455.               same as %@EVAL[var+1]).
  456.  
  457.               @INSTR[start,length,string]:  The same as SUBSTR, but puts
  458.               the start and length at the beginning to avoid problems with
  459.               commas in the string.
  460.  
  461.  
  462.  
  463.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 8
  464.  
  465.  
  466.               @NUMERIC[n]:  Returns 1 if the variable is composed entirely
  467.               of numeric digits (0-9), or the thousands or decimal
  468.               separators.
  469.  
  470.               @RANDOM[min,max]:  Returns a random integer value between min
  471.               and max, inclusive.
  472.  
  473.               @REPEAT[c,n]:  returns the character repeated 'n' times.
  474.  
  475.               @TRIM[string]:  Strips leading and trailing whitespace
  476.               (blanks and tabs) from the string.
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.    4OS2 2.0  [12-16-93]           UPDAT20.DOC                        page 9
  522.  
  523.