home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / pcmaguti / pcmagdoc.doc < prev    next >
Text File  |  1986-09-29  |  94KB  |  2,803 lines

  1.  
  2.         *==============================================================*
  3.         |                                                              | 
  4.         |                                                              |
  5.         |                                                              |
  6.         |                                                              |
  7.         |                                                              |
  8.         |                                                              |
  9.         |                   The PC Magazine Utilities                  |
  10.         |                                                              |
  11.         |                           Volume I                           |
  12.         |                                                              |
  13.         |         Copyright (C) 1986 Ziff-Davis Publishing Co.         |
  14.         |                                                              |
  15.         |        Manual assembled and edited by Craig L. Stark         |
  16.         |                                                              |
  17.         |                                                              |
  18.         |                                                              |
  19.         |                                                              |
  20.         |                                                              |
  21.         |                                                              |
  22.         |                                                              |
  23.         *==============================================================*
  24.  
  25.  
  26.  
  27.  
  28.           ATTR (Attribute)                       Charles Petzold
  29.           Command                                          No. 1
  30.  
  31.           ______________________________________________________
  32.  
  33.           Purpose:  ATTR.COM permits display and modification of
  34.                     the archive, system, hidden, and read-only
  35.                     file attributes.
  36.  
  37.           Format:   ATTR
  38.                       or
  39.                     ATTR *.*
  40.                       or
  41.                     ATTR [+A|-A] [+S|-S] [+H|-H] [+R|-R]
  42.                     [d:][path]filename[.ext]
  43.  
  44.           Remarks:  Entering ATTR without any parameters, as in
  45.                     the first format shown above, produces a help
  46.                     display (essentially identical to the third
  47.                     form above) that shows which file attributes
  48.                     can be changed.
  49.  
  50.                     ATTR.COM permits the use of the global ? and
  51.                     * characters (as in the second format above).
  52.                     Entering ATTR filename displays a specific
  53.                     file's attributes.  For example,
  54.  
  55.                          ATTR IBMBIO.COM
  56.  
  57.                     returns the display
  58.  
  59.                          IBMBIO.COM    Arc     Sys Hid R-O
  60.  
  61.                     showing that the Archive, System, Hidden, and
  62.                     Read-Only bits of the attribute byte are set
  63.                     for this file.
  64.  
  65.                     When wildcards are used to list the
  66.                     attributes of all the files in a directory,
  67.                     subdirectory names are shown as Dir (between
  68.                     the Arc and Sys in the example above).
  69.                     Unlike the DOS DIR command, ATTR lists hidden
  70.                     files, whether sought by specified filename
  71.                     or through a *.* listing.  However, ATTR does
  72.                     not show Volume names or the dot and double-
  73.                     dot entries in subdirectories.
  74.  
  75.                     The syntax for changing file attributes is
  76.                     indicated in the third format above.  After
  77.                     typing ATTR (and a space) you simply precede
  78.                     the file specification with a plus or minus
  79.                     sign, followed by the letter A (Archive), S
  80.                     (System), H (Hidden), or R (Read-Only).  A
  81.                     plus sign turns on the specified attribute; a
  82.                     minus sign turns it off.  More than one
  83.                     attribute can be changed at once, and the
  84.                     attribute-designating letters may be entered
  85.  
  86.  
  87.  
  88.  
  89.                                  Page -1-
  90.                     in any order and in upper- or lowercase.  No
  91.                     space may be used between the plus or minus
  92.                     and the letter that follows it, however.
  93.  
  94.           Example:  To convert the file 85TAX.WKS to hidden and
  95.                     read-only, you would enter
  96.  
  97.                     ATTR +H +R 85TAX.WKS
  98.  
  99.                     Since DOS itself normally sets the Archive
  100.                     bit, entering
  101.  
  102.                           ATTR 85TAX.WKS
  103.  
  104.                     would produce the display
  105.  
  106.                          85TAX.WKS     Arc         Hid R-O
  107.  
  108.                     Since the Hidden attribute has been set,
  109.                     however, the  DIR command will produce the
  110.                     message, "File not found."  And since the
  111.                     Read-Only flag has also been set, a DEL
  112.                     command will produce the message, "Access
  113.                     denied."
  114.  
  115.                     Notes:
  116.  
  117.                     1.   Requires DOS 2.0 or later.
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.                                  Page -2-
  152.  
  153.           BAC (Backup Directory)                  John Dickinson
  154.           Command                                          No. 2
  155.           _______________________________________________________
  156.  
  157.           Purpose:  Backs up all (or selected) files in a
  158.                     directory to hard or floppy disks, permitting
  159.                     disk changes when target disks become full.
  160.  
  161.           Format:   BAC [d:][path]filename[.ext] [d:][path]
  162.  
  163.           Remarks:  Unlike the DOS COPY command, BAC.COM permits
  164.                     you to change (formatted) target disks when
  165.                     backing up files to disk.  Furthermore, it
  166.                     only backs up files whose date stamp is later
  167.                     than those of identically named files on the
  168.                     target disk.  Unlike BACKUP, BAC does not
  169.                     change the setting of the archive bit.  Also,
  170.                     files copied with BAC.COM are fully usable at
  171.                     all times; they do not need first to go
  172.                     through a RESTORE process.
  173.  
  174.                     BAC.COM supports the use of global (* and ?)
  175.                     characters in filenames and extensions.  It
  176.                     does not, however, permit you to REName files
  177.                     during copying.
  178.  
  179.           Example:  You are working at a PC AT with a hard disk
  180.                     drive (C:) on which you keep your copy of
  181.                     BAC.COM, and you want to back up all the .DOC
  182.                     files stored on a 1.2-Mb floppy disk (drive
  183.                     A:) onto  regular 360K disks (drive B:).
  184.                     Since these .DOC files will require
  185.                     approximately 600K, you must have two
  186.                     formatted blank floppy disks ready to use in
  187.                     drive B:.  From the C> prompt you enter
  188.  
  189.                          BAC A: *.DOC B:
  190.  
  191.                     When the first target disk in drive B: is
  192.                     full, you will be prompted to change disks.
  193.  
  194.                     Notes:
  195.  
  196.                     1.   BAC.COM compares the date stamps of
  197.                          identically named files and will not
  198.                          overwrite a newer version with an older
  199.                          one.  This may cause files to be skipped
  200.                          if you omit to keep your date/time
  201.                          current.
  202.  
  203.                     2.   Requires DOS 2.0 or later.
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.                                  Page -3-
  215.  
  216.           Browse                                 Charles Petzold
  217.           Command                                          No. 3
  218.  
  219.           _______________________________________________________
  220.  
  221.           Purpose   Permits scrolling forward and backward
  222.                     throughout a file without use of a word
  223.                     processing program.
  224.  
  225.           Format:   BROWSE [d:][path]filename[.ext] [/W]
  226.  
  227.           Remarks:  The DOS TYPE command does not permit you to
  228.                     scroll ahead or go back to previously
  229.                     displayed material in a file.  It also exits
  230.                     at the first instance of Ctrl-Z (ASCII 26,
  231.                     conventionally used as an End-of-File
  232.                     marker), making it impossible to scan binary
  233.                     (e.g. .COM) files for error messages,
  234.                     copyright notices, and the like.
  235.  
  236.                     BROWSE.COM overcomes these shortcomings,
  237.                     giving you the chance to go immediately to
  238.                     the top or to the end of a file (the Home and
  239.                     End keys, respectively), to the succeeding or
  240.                     previous screen (PgUp and PgDn), or to move
  241.                     up or down a line at a time (Up Arrow or Down
  242.                     Arrow).  To return to DOS, simply press the
  243.                     Escape key or Ctrl-Break.
  244.  
  245.                     Wide displays, e.g. a spreadsheet file, are
  246.                     not broken at 80 columns, as with TYPE.
  247.                     BROWSE ignores carriage returns (ASCII 13),
  248.                     breaking lines only on line feeds (ASCII 10).
  249.                     The Right Arrow key scrolls the display to
  250.                     the right in eight-character increments (see
  251.                     Note 3 below) to view wide displays; the Left
  252.                     Arrow key returns you immediately to column
  253.                     zero.
  254.  
  255.                     BROWSE expands tab characters (ASCII 9) to
  256.                     the next eight-character boundary, but does
  257.                     no other character processing unless the /W
  258.                     parameter is specified.  Use of the /W option
  259.                     permits using BROWSE with WordStar files.
  260.  
  261.                     Notes:
  262.  
  263.                     1.   BROWSE can run under TopView or Windows;
  264.                          specify "writes directly to screen" in
  265.                          the .PIF and use the default 52K memory
  266.                          requirement.  (The program actually
  267.                          requires only approximately 33K to run.)
  268.                          For the TopView PIF, specify that the
  269.                          program intercepts Interrupt 23h.
  270.  
  271.                     2.   BROWSE is compatible with the IBM
  272.                          monochrome, CGA, and EGA displays, and
  273.  
  274.  
  275.  
  276.  
  277.                                  Page -4-
  278.                          will even run in the EGA 43-line mode.
  279.                          Files prepared with word-processors that
  280.                          employ a one-line-per-paragraph format
  281.                          (such as Microsoft Word and XyWrite) may
  282.                          to require excessive right scrolling,
  283.                          however.
  284.  
  285.                     3.   BROWSE.COM can be patched with DEBUG so
  286.                          that its right-scroll jumps by more than
  287.                          the default eight characters.  The
  288.                          address to patch is 10F in the .COM
  289.                          file.  After entering DEBUG BROWSE.COM
  290.                          type
  291.  
  292.                               E 10F
  293.  
  294.                          and the default value (08h) will appear.
  295.                          Type the desired hexadecimal number (28
  296.                          for a 40-column increment; 50 for an 80-
  297.                          column increment) and press <Enter>.
  298.                          Then type W<Enter> to write to the disk
  299.                          and Q<Enter> to quit DEBUG.
  300.  
  301.                     4.   Requires DOS 2.0 or later.
  302.  
  303.  
  304.  
  305.  
  306.  
  307.               THERE IS NO PAGE 5 OR 6 
  308.  
  309.               - - - - - - - - - - - -
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.                                  Page -7-
  345.  
  346.           DDIR (Double Directory)                Charles Petzold
  347.           Command                                          No. 5
  348.  
  349.           _______________________________________________________
  350.  
  351.           Purpose:  Displays all (or selected) directory entries
  352.                     in double columns, sorted in alphabetical
  353.                     order.
  354.  
  355.           Format:   DDIR [d:][path][filename[.ext]]
  356.  
  357.           Remarks:  If no parameters are specified, DDIR will
  358.                     list all files in the current directory.  Use
  359.                     of the global characters ? and * in the
  360.                     filename and extension parameters is
  361.                     supported.
  362.  
  363.                     If more than one screenful (50 entries) is
  364.                     required, the display pauses at the bottom,
  365.                     showing the message, "Press any key to
  366.                     continue."
  367.  
  368.                     Notes:
  369.  
  370.                     1.   Because DDIR.COM loads a secondary
  371.                          command processor, it will not operate
  372.                          under the Run option of WordStar and
  373.                          possibly with some other programs that
  374.                          normally allow calling up external
  375.                          programs.  For the same reason, it
  376.                          cannot be automatically reinvoked using
  377.                          the F3 key when at the DOS command
  378.                          level.
  379.  
  380.                     2.   Requires DOS 2.0 or later.
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.                                  Page -8-
  408.  
  409.           DELZ (Delete file entirely)             Steven Holzner
  410.           Command                                          No. 6
  411.  
  412.           _______________________________________________________
  413.  
  414.           Purpose:  Allows you to delete a file absolutely by
  415.                     writing over the sector(s) it occupies.
  416.  
  417.           Format:   DELZ
  418.  
  419.                     then
  420.  
  421.                     DEL/Z [d:][path][filename[.ext]]
  422.  
  423.           Remarks:  DOS does not delete files by overwriting
  424.                     them.  Rather, the sectors used by the
  425.                     "erased" file are simply made available for
  426.                     use by subsequently written files.  Until
  427.                     they are so used, however, the original file
  428.                     can be recovered with UNDEL.COM (included in
  429.                     these utilities) or by using a comparable
  430.                     commercial product.
  431.  
  432.                     Because it overwrites the sectors used by a
  433.                     file, DELZ provides complete deletion.  A
  434.                     memory-resident utility, it attaches itself
  435.                     to DOS when loaded, normally as a command
  436.                     entered through your AUTOEXEC.BAT file.
  437.                     Thereafter, until you reboot, it provides a
  438.                     /Z (for "zero out") option for the DEL
  439.                     command.
  440.  
  441.           Example:  The disk from which you boot up your PC on
  442.                     drive A: has a copy of DELZ.COM on it, and
  443.                     the disk in drive B: has a file called
  444.                     TAXCHEAT.85 that you wish to ensure is
  445.                     completely obliterated.  From the A> prompt
  446.                     you enter DELZ to load the command into
  447.                     memory.  Then you enter
  448.  
  449.                          DEL/Z B:TAXCHEAT.85
  450.  
  451.                     Even if the TAXCHEAT.85 file is unerased, its
  452.                     original contents will now be unrecoverable.
  453.                     (The contents of that file will, in fact, be
  454.                     the machine language code of DELZ.COM
  455.                     itself.)
  456.  
  457.                     Notes:
  458.  
  459.                     1.   The Z in DEL/Z must be typed uppercase.
  460.                          The use of the global characters ? and *
  461.                          is supported.
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.                                  Page -9-
  471.                     2.   Because of possible conflicts with other
  472.                          memory-resident programs and utilities,
  473.                          you must check whether DELZ can be
  474.                          installed on your own system.  While
  475.                          SideKick has caused no reported
  476.                          difficulties, running XyWrite II or III,
  477.                          with or without its XYKBD.COM file, is
  478.                          impossible after DELZ is made resident.
  479.  
  480.                     3.   The use of DELZ.COM is likely to be
  481.                          reasonably infrequent, but sometimes it
  482.                          will be absolutely necessary.  If you
  483.                          find at those times that co-residency
  484.                          conflicts prevent putting it in your
  485.                          AUTOEXEC.BAT file, you may wish to keep
  486.                          a bootable disk (formatted with the /S
  487.                          option) with a copy of DELZ.COM and an
  488.                          AUTOEXEC.BAT file that loads the
  489.                          program.  If you then boot up from this
  490.                          disk you can destroy any file(s) you
  491.                          wish, remove the DELZ disk, and reboot
  492.                          your computer normally.
  493.  
  494.                     4.   Requires DOS 2.0 or higher.
  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.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.                                  Page -10-
  534.  
  535.           DISKSCAN                               Charles Petzold
  536.           Command                                          No. 7
  537.  
  538.           ______________________________________________________
  539.  
  540.           Purpose:  Locates and identifies disk errors on hard
  541.                     and floppy disks, Bernoulli Boxes or other
  542.                     similar storage devices.
  543.  
  544.           Format:   DISKSCAN [d:]
  545.  
  546.           Remarks:  The DOS "Abort, Retry, Ignore?" and the
  547.                     CHKDSK "x lost clusters found" messages tend
  548.                     to appear after it is too late to save
  549.                     possibly valuable data.  Regular use of
  550.                     DISKSCAN will show when a hard disk is
  551.                     beginning to go bad--for example, when a
  552.                     specific sector or two in an as-yet
  553.                     unallocated cluster has become unusable since
  554.                     the disk was formatted.  (DOS marks and does
  555.                     not use bad clusters it finds while
  556.                     formatting.  DISKSCAN reports these "Flagged
  557.                     as bad.")
  558.  
  559.                     DISKSCAN error messages include:
  560.  
  561.                     CRC Error: Data checksum as recalculated
  562.                          during read does not agree with checksum
  563.                          stored on disk when written.
  564.                     Sector Not Found: Sector boundary created
  565.                          during formatting is no longer readable.
  566.                     File Alloc. Table and Can't Read FAT: Very
  567.                          serious error:  Back up what you can
  568.                          with COPY and reformat disk before
  569.                          trying to put files back on it.
  570.                     Boot Sector:  If this sector of a hard disk
  571.                          goes bad, put a DOS disk in drive A: and
  572.                          issue SYS C: command.  Then COPY
  573.                          COMMAND.COM C:.  This will put a fresh
  574.                          copy of the system files on drive C:.
  575.                          If this does not work, boot up again
  576.                          from the external DOS floppy disk, back
  577.                          up all hard disk files, and reformat the
  578.                          hard disk.
  579.                     Root Directory:  Errors here could keep you
  580.                          from later being able to load a file or
  581.                          save updates to it.  CHKDSK will
  582.                          probably indicate unallocated cluster
  583.                          chains or cross-linked files, and you
  584.                          may have to use CHKDSK/F to save what
  585.                          you can.
  586.                     Unallocated:  As yet, not serious, as the bad
  587.                          sector is not being used.  When it is,
  588.                          though, and you try to save a file with
  589.                          this sector, you'll get an "Abort,
  590.                          Retry, Ignore" message.  Select "Ignore"
  591.                          to save what you can, then REName the
  592.  
  593.  
  594.  
  595.  
  596.                                  Page -11-
  597.                          file and save again under the new name.
  598.                          Use RECOVER filename with the original
  599.                          file; this will cause DOS to flag its
  600.                          cluster(s) as bad.  (DISKSCAN does not
  601.                          enter the bad cluster numbers in the
  602.                          File Allocation Table; FORMAT and
  603.                          RECOVER do.)  Then delete the original
  604.                          (RECOVERed) filename and check the
  605.                          second version you saved (under the new
  606.                          name) to see how much (if any) of it is
  607.                          usable.
  608.                     Used by file: While DISKSCAN reports the bad
  609.                          sector number, it does not do a cross-
  610.                          check to see which of your files is
  611.                          using that sector.  You may be able to
  612.                          identify this by issuing the command
  613.  
  614.                               SWEEP COPY *.* NUL
  615.  
  616.                          When COPY encounters the file with the
  617.                          bad sector it will report "Abort, Retry,
  618.                          Ignore."  Note the bad file and press
  619.                          "I" to continue.
  620.                     Read Fault and General Failure:  The sectors
  621.                          so designated are bad, but the errors
  622.                          reported don't fall into any of the
  623.                          above categories.
  624.  
  625.                     Notes:
  626.  
  627.                     1.   Requires DOS 2.0 or higher.
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.                                  Page -12-
  660.  
  661.           DOORS                                   John Dickinson
  662.           Command                                          No. 8
  663.  
  664.           ______________________________________________________
  665.  
  666.           Purpose:  Permits switching between two simultaneously
  667.                     connected displays without leaving an
  668.                     application program and thereby losing the
  669.                     contents of the alternate screen.
  670.  
  671.           Format:   DOORS        (loads memory-resident program)
  672.                     <Alt-Right Shift>  (toggles between screens)
  673.  
  674.           Remarks:  When the second screen display is invoked by
  675.                     pressing Alt-Right Shift, DOORS begins by
  676.                     copying the first screen to the second.  The
  677.                     first screen display remains resident on that
  678.                     monitor, for reference, but the focus of your
  679.                     work shifts to the second screen, on which
  680.                     you may continue working.  If you then
  681.                     subsequently switch back to the first monitor
  682.                     (by pressing Alt-Right Shift again), the
  683.                     second monitor's current contents will remain
  684.                     on its display but will initially be copied
  685.                     to the first monitor.
  686.  
  687.                     Since the monochrome display cannot support
  688.                     40-column text or color graphics modes, DOORS
  689.                     can only be used with your color monitor set
  690.                     for 80-column text mode.  In addition to
  691.                     switching between monochrome and color text
  692.                     modes, however, DOORS permits you to store
  693.                     a screen from either a monochrome or a high-
  694.                     resolution EGA text display to the other 
  695.                     monitor, though you must toggle back to re-
  696.                     sume your work on the display from which 
  697.                     you started.
  698.  
  699.                     Notes:
  700.  
  701.                     1.   DOORS.COM may not work with
  702.                          "compatibles" that do not use the same
  703.                          keyboard interrupt structure as the PC.
  704.                          Further, as with all memory-resident
  705.                          software, it may not be compatible with
  706.                          all programs.
  707.  
  708.                     2.   Requires DOS 2.0 or later.
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.                                  Page -13-
  723.  
  724.           DOS-EDIT                               Charles Petzold
  725.           Command                                          No. 9
  726.  
  727.           ______________________________________________________
  728.  
  729.           Purpose:  Permits moving to, editing, and reentering
  730.                     on-screen DOS commands without retyping.
  731.  
  732.           Format:   DOS-EDIT     (loads memory-resident program)
  733.                          then
  734.                     <Up Arrow>           (enables DOS-Edit keys)
  735.                     <Left Arrow>                   (cursor left)
  736.                     <Right Arrow>                 (cursor right)
  737.                     <Up Arrow>                       (cursor up)
  738.                     <Down Arrow>                   (cursor down)
  739.                     <Backspace>          (destructive backspace)
  740.                     <Ins>              (insert/overwrite toggle)
  741.                     <Del>                     (delete character)
  742.                     <PgDn>               (delete to end of line)
  743.                     <PgUp>                  (cursor to column 1)
  744.                     <Home>          (cursor to initial column #)
  745.                     <Esc>           (exit edit mode, no changes)
  746.                     <End>           (transfer text line right of
  747.                                  cursor to end of original line)
  748.                     <Enter>   (like <End>, plus execute command)
  749.  
  750.           Remarks:  When loaded, normally through your
  751.                     AUTOEXEC.BAT file, an initial Up Arrow
  752.                     keypress activates the DOS-EDIT mode.
  753.                     (Thereafter, the Up Arrow functions as a
  754.                     normal cursor arrow key.)  If you move the
  755.                     cursor down to the original line, you will
  756.                     leave the DOS-EDIT mode (e.g., the Left Arrow
  757.                     key will once again delete characters).
  758.  
  759.           Example:  A typical use of DOS-EDIT is to correct a
  760.                     long command line in which you made a typing
  761.                     error.  Simply move the cursor up to the mis-
  762.                     typed line, correct the mistake (using the
  763.                     appropriate keys listed under FORMAT), press
  764.                     Home (to position the cursor to pick up the
  765.                     whole of the line), then Enter.
  766.  
  767.                     A less obvious example occurs if you have
  768.                     just done a DIR listing and want to run a
  769.                     program.  Move the cursor up and just to the
  770.                     right of the program name.  Press PgDn to
  771.                     delete the extension and the rest of the
  772.                     line, PgUp to position the cursor to pick up
  773.                     the whole command name, then Enter.
  774.  
  775.                     Note:
  776.  
  777.                     1.   DOS-EDIT is a memory-resident program,
  778.                          and so may cause conflicts with some
  779.                          other memory-resident software programs.
  780.                          Such problems can frequently be solved
  781.                          by changing the order in which the
  782.                          several memory-resident programs are
  783.                          loaded.   DOS-EDIT should be loaded
  784.                          before ASSIGN.COM and before SideKick,
  785.                          for example.
  786.                                  Page -14-
  787.  
  788.           FREE                                       Art Merrill
  789.           Command                                         No. 10
  790.  
  791.           ______________________________________________________
  792.  
  793.           Purpose:  FREE.COM reports the number of unallocated
  794.                     bytes on a floppy or hard disk.
  795.  
  796.           Format:   FREE [d:]
  797.  
  798.           Remarks:  FREE is in many respects a companion program
  799.                     to SIZE.COM:  the latter tells you how much
  800.                     storage space you must have to make your
  801.                     copies, the former tells you how much you do
  802.                     have.
  803.  
  804.                     The information provided by FREE.COM is, of
  805.                     course, available with the DOS commands
  806.                     CHKDSK and DIR.  Where a large group of files
  807.                     is involved, however, the DOS commands are
  808.                     very slow in operation;  FREE is almost
  809.                     instantaneous.
  810.  
  811.                     Notes:
  812.  
  813.                     1.   Requires DOS 2.0 or later.
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.                                  Page -15-
  847.  
  848.              KEEPER                                  Steven Holzner
  849.           Command                                         No. 11
  850.  
  851.           ______________________________________________________
  852.  
  853.           Purpose:  Stores and displays the last ten commands
  854.                     entered for immediate reexecution without
  855.                     retyping.
  856.  
  857.           Format:   KEEPER       (loads memory-resident program)
  858.                     <Ctrl-N>            (toggles window display)
  859.  
  860.           Remarks:  KEEPER can store command lines of up to 50
  861.                     characters each in length.  After loading,
  862.                     normally via your AUTOEXEC.BAT file, and
  863.                     pressing Ctrl-N (the default trigger key; see
  864.                     Option 1), the last 10 command lines are
  865.                     shown in a window in the upper right-hand
  866.                     corner of the display.  If you wish to
  867.                     execute one of the commands shown, move to
  868.                     its line with the Up Arrow and Down Arrow
  869.                     keys;  the line currently selected blinks.
  870.                     Pressing Ctrl-N again will reissue a blinking
  871.                     command or, if no stored command line has
  872.                     been selected, will return the display to
  873.                     normal.
  874.  
  875.                     Notes:
  876.  
  877.                     1.   KEEPER is not compatible with a number
  878.                          of application programs (e.g., XyWrite)
  879.                          that take over the keyboard interrupts.
  880.  
  881.  
  882.           Option 1: The default trigger key is Ctrl-N.  Should
  883.                     this be inconvenient, you can use the
  884.                     KEEPER.BAS program to recreate KEEPER.COM
  885.                     with a different trigger key.  From the DOS
  886.                     prompt simply enter
  887.  
  888.                          BASIC KEEPER
  889.  
  890.                          and the program will prompt you for your
  891.                     choice of trigger key.  After the KEEPER.COM
  892.                     file is created in this way, it is a regular
  893.                     DOS command and is not run under BASIC.
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.                                  Page -16-
  910.  
  911.           KEY-FAKE                               Charles Petzold
  912.           Command                                         No. 12
  913.  
  914.           ______________________________________________________
  915.  
  916.           Purpose:  Supplies the series of keystrokes needed to
  917.                     initialize an application program on boot-up.
  918.  
  919.           Format:   KEY-FAKE ["xyz"] [nn] [0] [@F]
  920.                     Programname
  921.  
  922.                     Characters typed within a pair of single or
  923.                     double quotes ("xyz") are normal ASCII-
  924.                     character keystrokes.  Numbers (nn) not in
  925.                     quote marks are ASCII decimal codes, e.g., 13
  926.                     (Enter), 26 (Ctrl-Z), or 27 (Esc).  Numbers
  927.                     preceded by @ are the extended ASCII decimal
  928.                     codes (128 through 255) generated by the Alt
  929.                     keys, cursor keys, Ins and Del keys, and the
  930.                     Function keys (e.g., @61 is the F3
  931.                     keystroke).  The 0 is used with programs that
  932.                     check the keyboard buffer (it tells such
  933.                     programs the buffer is clear, so the programs
  934.                     will treat the succeeding keystroke
  935.                     separately).
  936.  
  937.           Remarks:  KEY-FAKE is of greatest use in batch files
  938.                     used to call up application programs.  For
  939.                     example, to enter Lotus's 1-2-3 and set it
  940.                     for File Retrieve, the following .BAT file
  941.                     would be appropriate:
  942.  
  943.                     CD \LOTUS
  944.                     KEY-FAKE 0 13 0 13 0 13 0 13 0 13 "/FR"
  945.                     LOTUS
  946.  
  947.                     This takes you past the necessary initial
  948.                     carriage returns and /FR command without
  949.                     having to type them in each time.
  950.  
  951.                     Similarly, if each time you enter BASICA you
  952.                     want to have a blue border, blue background,
  953.                     and yellow letters, you would create a batch
  954.                     file, B.BAT, containing the lines
  955.  
  956.                     KEY-FAKE "COLOR 14,1,1" 13 "CLS" 13
  957.                     BASICA
  958.  
  959.                     Notes:
  960.  
  961.                     1.   The keystroke sequence stored by KEY-
  962.                          FAKE is limited to 124 characters and
  963.                          must be on one continuous command line.
  964.                          Keystrokes not supported by PC BIOS
  965.                          (e.g., Alt-Home) cannot be stored.
  966.  
  967.                     2.   Programs such as XyWrite II that get
  968.                          keyboard information directly from the
  969.                          hardware keyboard interrupt will bypass
  970.                          KEY-FAKE.  KEY-FAKE will also not work
  971.                          well when you are on-line using a
  972.                          communications program.
  973.                                  Page -17-
  974.  
  975.                     3.   KEY-FAKE is memory resident, but can be
  976.                          executed multiple times in the same
  977.                          session without reloading.  However, if
  978.                          nested batch files cause it to be re-
  979.                          invoked before its initially stored
  980.                          keystroke sequence has been exhausted,
  981.                          the remaining initial keystrokes will be
  982.                          lost.
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.                                  Page -18-
  1037.  
  1038.           LOCATE                                  Steven Holzner
  1039.           Command                                         No. 13
  1040.  
  1041.           ______________________________________________________
  1042.  
  1043.           Purpose:  Searches all files in the current and the
  1044.                     root directories of a drive for all
  1045.                     occurrences of any specified sequence (e.g.,
  1046.                     a word or phrase) of up to 20 ASCII
  1047.                     characters. Additional search paths and/or
  1048.                     drives may be specified by using Option 1.
  1049.  
  1050.           Format:   LOCATE searchstring
  1051.  
  1052.           Remarks:  In addition to returning the path(s) and
  1053.                     filename(s) of the file(s) in which the
  1054.                     requested string is found, LOCATE puts
  1055.                     searchstring into a context of up to 20
  1056.                     immediately surrounding characters.
  1057.  
  1058.                     LOCATE.COM is case sensitive;  the string to
  1059.                     be found must be typed exactly.  The program
  1060.                     does, however, strip "high-order" (non-ASCII)
  1061.                     bits from searchstring, so it can be used,
  1062.                     for example with WordStar document files.
  1063.  
  1064.                     Note:
  1065.  
  1066.                     1.   Requires the use of DOS 2.0 or later.
  1067.  
  1068.           Option 1: Normally, if LOCATE does not find the
  1069.                     requested string either in the current
  1070.                     directory or in the disk's root directory, it
  1071.                     simply exits.  It does not automatically
  1072.                     search every subdirectory on every drive.
  1073.  
  1074.                     You can extend the search range, however, by
  1075.                     preparing a simple ASCII file that specifies
  1076.                     additional paths and/or drives.  The name of
  1077.                     this file must be PATH.DAT, and it must be
  1078.                     located in the root directory (usually C:\
  1079.                     for hard disks, A:\ for floppies).  An
  1080.                     example of such a PATH.DAT file would be
  1081.  
  1082.                     \WORK
  1083.                     \LEVEL1
  1084.                     \A:
  1085.  
  1086.                     Each line in the PATH.DAT file must end with
  1087.                     a carriage return and specifies an additional
  1088.                     path (or drive) for LOCATE to check before it
  1089.                     exits.  The PATH.DAT file can be up to 300
  1090.                     bytes in length, and incorrectly specified
  1091.                     entries are ignored.
  1092.  
  1093.                     The use of Option 1 will, of course, slow
  1094.                     down the overall speed of the search.
  1095.  
  1096.  
  1097.  
  1098.  
  1099.                                  Page -19-
  1100.                       
  1101.           LOCK (and UNLOCK)                       Steven Holzner
  1102.           Commands                                        No. 14
  1103.  
  1104.           ______________________________________________________
  1105.  
  1106.           Purpose:  Encrypts a file, rendering it unreadable to
  1107.                     anyone who does not know the user-chosen
  1108.                     passphrase.  Complementarily, using the same
  1109.                     passphrase, de-encrypts the file.
  1110.  
  1111.           Format:   LOCK [d:][path]filename[.ext] [d:][path]
  1112.                     [filename][.ext]
  1113.                                  or
  1114.                     UNLOCK [d:][path]filename[.ext] [d:][path]
  1115.                     [filename][.ext]
  1116.  
  1117.           Remarks:  The user-selected passphrase can be up to 64
  1118.                     characters in length; the programs prompt you
  1119.                     to supply it.  Files to be LOCKed and
  1120.                     UNLOCKed must be less than 62K in length.  If
  1121.                     you do not supply new filenames for the
  1122.                     locked and unlocked files, the programs use
  1123.                     the default filename FILE.LOC.
  1124.  
  1125.           Example:  You have a file of student course evaluations
  1126.                     named CONFY on drive C: that you wish to mail
  1127.                     to a colleague in encrypted form.  You put a
  1128.                     formatted floppy disk in drive A:, and at the
  1129.                     C> prompt you enter
  1130.  
  1131.                          LOCK CONFY A:CRIMSON
  1132.  
  1133.                     When the program asks for a passphrase, you
  1134.                     enter VERITAS.
  1135.  
  1136.                     The CRIMSON file on the disk will be
  1137.                     unreadable.  When your colleague--who must,
  1138.                     of course, be told the passphrase you have
  1139.                     used--puts the disk in his machine, he types
  1140.  
  1141.                          UNLOCK CRIMSON GUIDE
  1142.  
  1143.                     When prompted, he supplies the passphrase
  1144.                     VERITAS, and his file GUIDE will be identical
  1145.                     to your original file CONFY.
  1146.  
  1147.                     Notes:
  1148.  
  1149.                     1.   LOCK and UNLOCK do not delete any files,
  1150.                          original or encoded.
  1151.  
  1152.                     2.   Requires DOS version 2.0 or later.
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.                                  Page -20-
  1163.  
  1164.           LPTPORT                                 John Dickinson
  1165.           Command                                         No. 15
  1166.  
  1167.           _______________________________________________________
  1168.  
  1169.           Purpose:  Permits alternate use of two parallel
  1170.                     printers (e.g., letter- and draft-quality
  1171.                     units) with software that is normally limited
  1172.                     to using LPT1:.
  1173.  
  1174.           Format:   LPTPORT
  1175.  
  1176.           Remarks:  Certain software, e.g., the PC-DOS Shift-
  1177.                     PrtSc routine, does not recognize a command
  1178.                     such as
  1179.  
  1180.                     A>MODE LPT1:=LPT2:
  1181.  
  1182.                     To use such software with two different
  1183.                     printers normally requires changing physical
  1184.                     connections.
  1185.  
  1186.                     LPTPORT.COM provides a software toggle that
  1187.                     interchanges the internal DOS I/O addresses
  1188.                     of LPT1: and LPT2:.  After entering the
  1189.                     LPTPORT command, a second printer, connected
  1190.                     to LPT2:, will receive program output
  1191.                     nominally directed to LPT1:.  Entering the
  1192.                     LPTPORT command a second time restores the
  1193.                     original port assignments.
  1194.  
  1195.                     Notes:
  1196.  
  1197.                     1.   Certain internal print-spooling
  1198.                          programs, such as those supplied with
  1199.                          add-on memory board cards, read the port
  1200.                          address assignments at boot-up time and
  1201.                          do not thereafter look at the low-memory
  1202.                          area of DOS to find them.  With such
  1203.                          programs you will have to run LPTPORT
  1204.                          before the print spoolers are loaded in
  1205.                          order to change the effective port
  1206.                          assignments.
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.                                  Page -21-
  1226.  
  1227.           MONOGRAF.DRV                           Charles Petzold
  1228.           Lotus's 1-2-3 (Version 1A) driver               No. 16
  1229.  
  1230.           ______________________________________________________
  1231.  
  1232.           Purpose:  Displays 1-2-3 bar and stacked-bar graphs on
  1233.                     a monochrome monitor.
  1234.  
  1235.           Format:   COPY MONOGRAF.DRV [drive:][path] GD.DRV
  1236.  
  1237.                     Note: the [drive:] and [path] above refer to
  1238.                     your Lotus system disk or subdirectory path.
  1239.             
  1240.                     Note also:  When using MONOGRAF, specify
  1241.                     Color, not Black-and-White, from the 1-2-3
  1242.                     graph options menu.
  1243.  
  1244.           Remarks:  Displaying the numbers in a 1-2-3 worksheet
  1245.                     in graph form normally requires using either
  1246.                     a color/graphics adaptor (CGA) and monitor
  1247.                     or--for users who have only a monochrome
  1248.                     system--the use of a Hercules (or equivalent)
  1249.                     card.
  1250.  
  1251.                     MONOGRAF.DRV is installed in 1-2-3 just as if
  1252.                     it were a Lotus-supplied GD (graphics driver)
  1253.                     program.
  1254.  
  1255.                     Notes:
  1256.  
  1257.                     1.   MONOGRAF can display only bar or
  1258.                          stacked-bar graphs.
  1259.  
  1260.                     2.   To display graphs, use Function key 10,
  1261.                          as the Lotus manual directs.  Use this
  1262.                          key only in the Worksheet mode, not in
  1263.                          conjunction with the 1-2-3 PrintGraph
  1264.                          program.  You can, however, use Shift-
  1265.                          PrtSc to print out the screen display on
  1266.                          any printer that can handle the IBM
  1267.                          text-graphics character set.
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.                                  Page -22-
  1289.  
  1290.           MOVE                                    Steven Holzner
  1291.           Command                                         No. 17
  1292.  
  1293.           ______________________________________________________
  1294.  
  1295.           Purpose:  Allows rapid selection and copying of files
  1296.                     to or from a double-sided floppy disk, a
  1297.                     RAMdisk, or the current subdirectory of a
  1298.                     hard disk.
  1299.  
  1300.           Format:   MOVE [d:]filename[.ext] d:
  1301.  
  1302.           Remarks:  MOVE.COM was written to be compatible with
  1303.                     all versions of PC-DOS (including 1.1), and
  1304.                     so does not support pathnames.
  1305.  
  1306.           Example:  When you enter a command such as
  1307.  
  1308.                          MOVE A:*.BAS B:
  1309.  
  1310.                     each filename on the root (or current)
  1311.                     directory of drive A: that has a .BAS
  1312.                     extension will be displayed in the form
  1313.  
  1314.                     Copy filename.BAS (Y/N)?
  1315.  
  1316.                     If you strike Y, the file will immediately be
  1317.                     copied to drive B: and the next appropriate
  1318.                     filename will be displayed.  If you strike N,
  1319.                     the file will not be copied, and the next
  1320.                     appropriate filename will be presented.  The
  1321.                     program terminates with a simple return to
  1322.                     the DOS prompt when no appropriate files
  1323.                     remain to be considered.
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.                                  Page -23-
  1352.  
  1353.           NO                                     Charles Petzold
  1354.           Command                                         No. 18
  1355.  
  1356.           ______________________________________________________
  1357.  
  1358.           Purpose:  Excludes specified files in a subdirectory
  1359.                     from the action of a command.
  1360.  
  1361.           Format:   NO filespec Command [parameter]
  1362.  
  1363.           Remarks:  NO.COM is designed for situations in which
  1364.                     you want to apply a command such as DELete or
  1365.                     COPY to all the files in a directory except
  1366.                     one or two (or a class of) files.  For
  1367.                     example,
  1368.  
  1369.                          NO *.BAS COPY *.* A:
  1370.  
  1371.                     copies all the files in your current
  1372.                     subdirectory to drive A: except for those
  1373.                     that have a .BAS extension.
  1374.  
  1375.                     To exclude more than one file (or category)
  1376.                     you must use a separate NO command for each
  1377.                     on the command line.  Thus,
  1378.  
  1379.                          NO *.ASM NO *.COM DEL *.*
  1380.  
  1381.                     deletes all files in the current directory
  1382.                     except those with .ASM or .COM extensions.
  1383.  
  1384.                     Notes:
  1385.  
  1386.                     1.   NO.COM should not be used in conjunction
  1387.                          with the PC-DOS BACKUP and RESTORE
  1388.                          commands.  This is because NO operates
  1389.                          by temporarily setting the "hidden" file
  1390.                          attribute bit on the files to be
  1391.                          excluded from the main command, then
  1392.                          unhiding the files after the main
  1393.                          command has been executed.  Since the
  1394.                          DOS BACKUP/RESTORE operation acts on
  1395.                          hidden and unhidden files alike, NO.COM
  1396.                          cannot be used to exclude files from
  1397.                          BACKUP/RESTORE.  RESTORE, indeed, will
  1398.                          restore the supposedly excluded files as
  1399.                          hidden, overwriting the originals.
  1400.  
  1401.                     2.   While NO.COM provides full path support
  1402.                          (and so requires the use of DOS 2.0 or
  1403.                          later), it is a good policy when using
  1404.                          NO to use CHDIR to make the directory
  1405.                          that contains the files on which you
  1406.                          wish to operate the current directory.
  1407.  
  1408.                          For example, suppose you are in your
  1409.                          root directory, one of whose subdirec-
  1410.                          tories is \BASIC.  If you were to enter
  1411.                          the command
  1412.  
  1413.                               NO *.BAS DEL \BASIC\*.*
  1414.  
  1415.                                  Page -24-
  1416.                          you would not delete all the files in
  1417.                          the \BASIC subdirectory except those
  1418.                          with a .BAS extension, as you might have
  1419.                          intended to do.  To do this from the
  1420.                          root directory you would have had to
  1421.                          enter
  1422.  
  1423.                               NO \BASIC\*.BAS DEL \BASIC\*.*
  1424.  
  1425.                          This complete filespec would tell NO
  1426.                          that it had to protect files in the
  1427.                          \BASIC, not in the current (i.e., root)
  1428.                          directory.
  1429.  
  1430.                          If you follow our recommendation and
  1431.                          enter
  1432.  
  1433.                               CD \BASIC
  1434.                               NO *.BAS DEL *.*
  1435.  
  1436.                          thus making \BASIC your current
  1437.                          directory before you start deleting, you
  1438.                          will then clean out all but the .BAS
  1439.                          files, just as you intended.
  1440.  
  1441.                     3.   Should a parity check error, power
  1442.                          outage, or system crash occur during the
  1443.                          brief period between the times NO hides
  1444.                          and subsequently unhides the protected
  1445.                          files, those files will subsequently
  1446.                          seem to have disappeared.  They are not
  1447.                          lost; only hidden from a DIR listing.
  1448.                          Use ATTR.COM (included in this set of
  1449.                          utilities) to change their hidden
  1450.                          status.
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.                                  Page -25-
  1479.  
  1480.           NPAD (Notepad)                          Steven Holzner
  1481.           Command                                         No. 19
  1482.  
  1483.           ______________________________________________________
  1484.  
  1485.           Purpose:  Creates an on-screen window in which to keep
  1486.                     notes while working in other programs.
  1487.  
  1488.           Format:   NPAD         (loads memory-resident program)
  1489.                     <Ctrl-N>            (toggles notepad on/off)
  1490.  
  1491.           Remarks:  The NPAD notepad holds 10 lines of 25
  1492.                     characters each.  The window is toggled on
  1493.                     and off in the upper right corner of the
  1494.                     screen.  Toggling the window off does not
  1495.                     eliminate its contents, but pressing the
  1496.                     Delete key while the window is on-screen
  1497.                     does.  Single characters may be deleted with
  1498.                     the backspace, and the carriage return is
  1499.                     also recognized.  No provision for storing
  1500.                     the contents of the notepad as a file are
  1501.                     available, however.
  1502.  
  1503.                     Option 1: NPAD.COM can be modified by using
  1504.                     DEBUG.  The ASCII and scan codes for the
  1505.                     default trigger key (Ctrl-N) are 0Eh and 31h,
  1506.                     respectively, and are located at the offset
  1507.                     addresses xxxx:0336 and xxxx:0337.  To change
  1508.                     these to use the reverse apostrophe (grave
  1509.                     accent), you would enter
  1510.  
  1511.                          DEBUG NPAD.COM
  1512.  
  1513.                     and
  1514.  
  1515.                          -E 336
  1516.  
  1517.                     DEBUG will respond with
  1518.  
  1519.                     xxxx:0336  0E.
  1520.  
  1521.                     and you simply type in the new ASCII code, in
  1522.                     this case, 60 (the hex value of decimal 96).
  1523.  
  1524.                     After entering E 337 and getting the response
  1525.  
  1526.                     xxxx:0337  31.
  1527.  
  1528.                     you type in the new scan code 29 (41 decimal)
  1529.                     for the grave accent.  Other ASCII and scan
  1530.                     codes are given in the BASIC and in the DOS
  1531.                     Technical Reference manuals.
  1532.  
  1533.                     The two locations to examine and change for
  1534.                     the NPAD colors are 02FF and 0413, which have
  1535.                     a default value of 70h (112 decimal).  On a
  1536.                     color monitor this produces a white (7)
  1537.                     background with black (0) characters.  For
  1538.                     red letters on white you would change the 70h
  1539.                     to 74h (116 decimal) at these two locations.
  1540.  
  1541.                                  Page -26-
  1542.                     The colors to which NPAD resets its portion
  1543.                     of the screen on exit are set by the value at
  1544.                     xxxx:0350h.  The default value is 07 (white
  1545.                     characters on a black background).  For white
  1546.                     letters on a dark blue background, change the
  1547.                     07 to 17h (23 decimal); for dark blue letters
  1548.                     on white, use 71h (113 decimal) at this location.
  1549.  
  1550.                     When you have made the changes you want, at
  1551.                     the DEBUG hyphen prompt enter W and then Q.
  1552.  
  1553.                     Notes:
  1554.  
  1555.                     1.   NPAD is a memory-resident program that
  1556.                          must scan the keyboard interrupts.  It
  1557.                          will conflict with applications programs
  1558.                          (e.g., XyWrite) that themselves
  1559.                          commandeer the keyboard interrupts.
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.                                  Page -27-
  1605.  
  1606.           ONEKEY                                  Steven Holzner
  1607.           Command (after running .BAS version)            No. 20
  1608.  
  1609.           ______________________________________________________
  1610.  
  1611.           Purpose:  Reassigns a designated series of keystrokes
  1612.                     to a user-selected keystroke.
  1613.  
  1614.           Format:   ONEKEY
  1615.  
  1616.           Remarks:  ONEKEY is a memory-resident keyboard macro
  1617.                     program.  While written in assembly language,
  1618.                     it is presented here with a BASIC interface
  1619.                     that need be run only once, but which
  1620.                     facilitates entering the trigger keys you
  1621.                     want to use and the sequences of keystrokes
  1622.                     they will replace.  ONEKEY will accept up to
  1623.                     30 different trigger keys, each of which will
  1624.                     replace up to 50 keystrokes.
  1625.  
  1626.                     When you load and run ONEKEY.BAS in BASIC,
  1627.                     you will prompted to "Type the key to be
  1628.                     replaced."  This will be a key you use as a
  1629.                     trigger:  Ctrl-N, Alt-Z, F1, or the like.
  1630.                     When you enter this key, you will be
  1631.                     prompted, "The command that replaces this key
  1632.                     is."  Here you enter the string of keystrokes
  1633.                     the selected trigger key will execute.
  1634.                     Remember to include all necessary carriage
  1635.                     returns, spaces, and control characters, just
  1636.                     as you would enter them at the keyboard.
  1637.                     When you type Ctrl-End (not a carriage
  1638.                     return) to terminate this sequence, you'll be
  1639.                     prompted for the next trigger key, and so on.
  1640.  
  1641.                     When you have typed in as many macros as you
  1642.                     want, type Ctrl-End when asked for a trigger
  1643.                     key.  It takes BASIC about half a minute to
  1644.                     create the ONEKEY.COM file.
  1645.  
  1646.                     Once created, ONEKEY is a regular DOS
  1647.                     command;  you enter it at the DOS prompt (or
  1648.                     as a line in your AUTOEXEC.BAT file), not
  1649.                     from BASIC.
  1650.  
  1651.                     Notes:
  1652.  
  1653.                     1.   Memory-resident utilities such as ONEKEY
  1654.                          are often incompatible with programs
  1655.                          (XyWrite is one) that themselves take
  1656.                          over the keyboard interrupts.  You must
  1657.                          simply experiment to see if ONEKEY can
  1658.                          be used with your software.
  1659.  
  1660.                     2.   Requires DOS 2.0 or later.
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.                                  Page -28-
  1668.  
  1669.           PR (Print)                              John Dickinson
  1670.           Command                                         No. 21
  1671.  
  1672.           ______________________________________________________
  1673.  
  1674.           Purpose:  Prints the standard ASCII files of program
  1675.                     listings according to a standard formatted
  1676.                     style.
  1677.  
  1678.           Format:   PR [d:][path]filename[.ext]
  1679.  
  1680.           Remarks:  PR.COM formats the program listing into 80
  1681.                     columns, expands ASCII tabs, adds a seven-
  1682.                     line header and a blank footer, and prints 55
  1683.                     lines of the listing on each 66-line page.
  1684.                     The header contains the filename, page
  1685.                     number, and date and time the program was
  1686.                     last saved.
  1687.  
  1688.                     Notes:
  1689.  
  1690.                     1.   The listings photoreproduced in PC
  1691.                          Magazine's Programming/Utilities column
  1692.                          are printed using PR.COM.
  1693.  
  1694.                     2.   Requires use of DOS 2.0 or later.
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.                                  Page -29-
  1731.  
  1732.           PRSWAP                                  John Dickinson
  1733.           Command                                         No. 22
  1734.  
  1735.           ______________________________________________________
  1736.  
  1737.           Purpose:  Converts IBM text-graphics characters into
  1738.                     ASCII characters that can be printed by non-
  1739.                     graphics printers.
  1740.  
  1741.           Format:   PRSWAP
  1742.  
  1743.           Remarks:  The IBM text-graphics characters (non-
  1744.                     standard ASCII 176-223 and 254) programmers
  1745.                     often use to make their screen displays look
  1746.                     more attractive cannot be handled by many
  1747.                     printers.  PRSWAP.COM is a memory-resident
  1748.                     program that translates these characters into
  1749.                     presentable-looking ASCII substitutes.
  1750.  
  1751.                     PRSWAP should be loaded only once until you
  1752.                     power down or hit Ctrl-Alt-Del.  If you
  1753.                     intend to use it regularly, the best place to
  1754.                     put it is in your AUTOEXEC.BAT file.
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.                                  Page -30-
  1794.  
  1795.           PUSHDIR (and POPDIR)                       John Friend
  1796.           Commands                                        No. 23
  1797.  
  1798.           ______________________________________________________
  1799.  
  1800.           Purpose:  Provides a way to return automatically to
  1801.                     your current directory after running programs
  1802.                     that require directory changing.
  1803.  
  1804.           Format:   PUSHDIR
  1805.                     [CD \AltDir\ProgName]
  1806.                     POPDIR
  1807.  
  1808.           Remarks:  While PUSHDIR and POPDIR can be entered
  1809.                     directly from the DOS prompt, their primary
  1810.                     application is in batch files.  For example,
  1811.                     suppose you create a file named 12.BAT that
  1812.                     consists of the following four lines:
  1813.  
  1814.                          PUSHDIR
  1815.                          CD\LOTUS
  1816.                          123
  1817.                          POPDIR
  1818.  
  1819.                     Suppose also that 12.BAT, PUSHDIR.COM, and
  1820.                     POPDIR.COM are either in your root directory
  1821.                     or in a subdirectory on the PATH specified in
  1822.                     your AUTOEXEC.BAT file.  Assume, finally,
  1823.                     that you are currently in your word
  1824.                     processing subdirectory (\WP), but need some
  1825.                     information from a 1-2-3 spreadsheet.  If you
  1826.                     now enter
  1827.  
  1828.                          12<CR>
  1829.  
  1830.                     from the DOS prompt, PUSHDIR stores the \WP
  1831.                     (your current directory) on its stack and DOS
  1832.                     changes to the \LOTUS subdirectory and runs
  1833.                     1-2-3.  When you exit from 1-2-3, you would
  1834.                     normally be left in the \LOTUS subdirectory.
  1835.                     A DOS CD command in 12.BAT after the 123 line
  1836.                     could return you to a specified directory
  1837.                     every time you terminated 1-2-3, of course.
  1838.                     But POPDIR returns you to whatever
  1839.                     subdirectory you were in when you invoked 1-
  1840.                     2-3--in this case, to your \WP subdirectory.
  1841.  
  1842.                     PUSHDIR can accommodate up to six levels of
  1843.                     directories on its stack, permitting
  1844.                     considerable programming flexibility in
  1845.                     constructing batch files.
  1846.  
  1847.                     Notes:
  1848.  
  1849.                     1.   PUSHDIR and POPDIR require DOS 2.0 or
  1850.                          later.
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.                                  Page -31-
  1857.  
  1858.           QUICKEYS                                   Leo Forrest
  1859.           Command                                         No. 24
  1860.  
  1861.           ______________________________________________________
  1862.  
  1863.           Purpose:  Accelerates the "typematic" repeat rate of a
  1864.                     PC or XT keyboard.  A built-in subprogram is
  1865.                     included that instantly clears the keyboard
  1866.                     buffer to prevent sending excess accumulated
  1867.                     keystrokes to the display.
  1868.  
  1869.           Format:   QUICKEYS     (loads memory-resident program)
  1870.                     <Alt-Shift>         (clears keyboard buffer)
  1871.  
  1872.           Remarks:  While the keystroke repetition rate of the PC
  1873.                     AT is adjustable, that of the XT and the PC
  1874.                     is fixed at approximately nine keystrokes per
  1875.                     second.  When QUICKEYS is loaded (normally
  1876.                     through your AUTOEXEC.BAT file), the
  1877.                     repetition speed is approximately doubled.
  1878.                     Successive loadings of QUICKEYS (each
  1879.                     requires about 672 bytes of memory) can be
  1880.                     used to increase the keyboard speed still
  1881.                     further, if desired.
  1882.  
  1883.                     Notes:
  1884.  
  1885.                     1.   QUICKEYS is a memory-resident program
  1886.                          that inserts itself both into the timer
  1887.                          tick and keyboard interrupt routines.
  1888.                          It is not compatible with some other
  1889.                          memory-resident software and with
  1890.                          programs that appropriate the keyboard
  1891.                          interrupts.
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.                                  Page -32-
  1920.  
  1921.           RED (Redirect)                          John Dickinson
  1922.           Command                                         No. 25
  1923.  
  1924.           _______________________________________________________
  1925.  
  1926.           Purpose:  Transfers one (or more) file(s) from one
  1927.                     subdirectory to another without requiring the
  1928.                     use of COPY and ERASE.
  1929.  
  1930.           Format:   RED [d:][path]filename[.ext] [d:][path]
  1931.  
  1932.           Remarks:  Like the DOS COPY command, RED.COM supports
  1933.                     the use of the global characters ? and * in
  1934.                     specifying the desired source files.
  1935.  
  1936.                     Unlike COPY, however, RED.COM does not permit
  1937.                     renaming a file during the transfer process.
  1938.                     (This is why it is unnecessary to supply a
  1939.                     target filename.)  Furthermore, RED requires
  1940.                     that the source and target drives be the
  1941.                     same.  You cannot, therefore, remove a set of
  1942.                     files from drive C: by trying to REDirect
  1943.                     them to drive A:.
  1944.  
  1945.           Example:  Before submitting your income tax you
  1946.                     calculated it under several different
  1947.                     methods, contained in files named ROUGH1.DAT
  1948.                     through ROUGH6.WKS.  These are all in the
  1949.                     subdirectory \IRS on drive C:, and you want
  1950.                     to move them all to a sub-subdirectory (which
  1951.                     you have created) called \1985TAX\DRAFTS.
  1952.                     From the C> prompt enter
  1953.  
  1954.                          \IRS\ROUGH?.* \1985TAX\DRAFTS
  1955.  
  1956.                     and all six files will be moved out of \IRS
  1957.                     and into \1985\DRAFTS.
  1958.  
  1959.                     Note:
  1960.  
  1961.                     1.   Requires DOS 2.0 or later.
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.                                  Page -33-
  1983.  
  1984.           RENDIR (Rename Directory)               John Dickinson
  1985.           Command                                         No. 26
  1986.  
  1987.           ______________________________________________________
  1988.  
  1989.           Purpose:  Permits renaming subdirectories directly,
  1990.                     without creating a new directory, moving the
  1991.                     contents of the old one into it, and then
  1992.                     removing the old directory.
  1993.  
  1994.           Format:   RENDIR [d:][path]oldname[.ext] newname[.ext]
  1995.  
  1996.           Remarks:  PC-DOS has always provided a REName command
  1997.                     for filenames, but not for directories.  A
  1998.                     bug in DOS 3.0 permits you to use the
  1999.                     immediate mode of BASIC to
  2000.  
  2001.                          NAME olddir AS newdir
  2002.  
  2003.                     but this bug has been removed from subsequent
  2004.                     DOS versions.  RENDIR.COM permits renaming
  2005.                     directories in DOS 3.0 and later.
  2006.  
  2007.                     While RENDIR allows you to change the name of
  2008.                     a directory on another drive than your
  2009.                     current one, it does not permit you to
  2010.                     transfer a directory to another drive by
  2011.                     RENDIRing it.  Thus, for example, if you are
  2012.                     on drive C: and have a directory on drive D:
  2013.                     named \TAXES, from the C> prompt you can
  2014.  
  2015.                          RENDIR D:\TAXES \TAXES85
  2016.  
  2017.                     You cannot, however
  2018.  
  2019.                          RENDIR D:\TAXES C:\TAXES85
  2020.  
  2021.                     Furthermore, you should not use RENDIR to try
  2022.                     to change the name of the subdirectory you
  2023.                     are currently in.
  2024.  
  2025.                     Notes:
  2026.  
  2027.                     1.   Unlike RENAME, RENDIR does not support
  2028.                          use of the ? and * wildcard characters.
  2029.  
  2030.                     2.   Requires DOS 3.0 or higher.
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.                                  Page -34-
  2046.  
  2047.           SETUP                                     Jeff Prosise
  2048.           Command                                         No. 27
  2049.  
  2050.           ______________________________________________________
  2051.  
  2052.           Purpose:  Permits menu-oriented selection and immediate
  2053.                     transmission of printer control codes from
  2054.                     within a running application program.
  2055.  
  2056.           Format:   SETUP            (loads command into memory)
  2057.                     <Ctrl-Right Shift>          (activates menu)
  2058.                     <[Shift]<Fx>      (selects [deselects] mode)
  2059.                     <Esc>            (activates selection(s) and
  2060.                                  returns to application program)
  2061.  
  2062.                     Fx is a Function key (F1 through F10) that
  2063.                     sends the required control sequence to the
  2064.                     printer.  Shift-Fx toggles the selected
  2065.                     printer mode off.
  2066.  
  2067.           Remarks:  After loading SETUP (normally via your
  2068.                     AUTOEXEC.BAT file), the printer mode
  2069.                     selection menu program is displayed by
  2070.                     pressing the Ctrl-Right Shift key
  2071.                     combination.  This can be done from within
  2072.                     application programs that do not take over
  2073.                     the keyboard interrupts; the application is
  2074.                     simply suspended until you leave SETUP by
  2075.                     pressing the Esc key.  (Application programs
  2076.                     such as XyWrite III that do take over the
  2077.                     keyboard interrupts can be used with
  2078.                     SETUP.COM if they themselves provide the
  2079.                     option of temporarily returning to DOS
  2080.                     control.)
  2081.  
  2082.                     Printer permitting, more than one mode can be
  2083.                     selected at once by pressing additional
  2084.                     function keys.  The default printer choices
  2085.                     are for the Epson RX/FX series.  Option 1
  2086.                     shows how to modify the program for other
  2087.                     printers.
  2088.  
  2089.                     Notes:
  2090.  
  2091.                     1.   SETUP.COM is a memory-resident program
  2092.                          (approximately 3K in length), and so is
  2093.                          subject to conflicts with other memory-
  2094.                          resident software.  Several users have
  2095.                          reported that it is incompatible with
  2096.                          Prokey, for example.  Similarly, while
  2097.                          SETUP.COM is compatible with SideKick,
  2098.                          the combination of SuperKey and SideKick
  2099.                          has been reported to be incompatible.
  2100.  
  2101.           Option 1: If you have access to an IBM or Microsoft
  2102.                     macro assembler, the easiest way to modify
  2103.                     SETUP for other printers (or to use LPT2: or
  2104.                     LPT3: instead of LPT1:) is to call up the
  2105.                     SETUP.ASM file (included with these
  2106.                     utilities) in any ASCII word processor.  You
  2107.                     can then make your modifications and
  2108.                     reassemble the file.
  2109.                                  Page -35-
  2110.  
  2111.                     Even if you do not have a macro assembler and
  2112.                     must therefore use DEBUG.COM to modify
  2113.                     SETUP.COM directly, print out and read the
  2114.                     SETUP.ASM file.  It is heavily commented, and
  2115.                     will give you a good idea of how the
  2116.                     different menu strings and printer control
  2117.                     strings are organized.  Note, however, that
  2118.                     the specific values shown in SETUP.ASM are in
  2119.                     decimal notation; values entered via DEBUG
  2120.                     must be in hexadecimal notation.
  2121.  
  2122.                     The following offset addresses, not those
  2123.                     originally published in PC Magazine, should
  2124.                     be used:
  2125.  
  2126.                     The menu color attributes (4F and 70) are at
  2127.                     offsets xxxx:013F and xxxx:0140.
  2128.  
  2129.                     To change the port number from LPT1: to LPT2:
  2130.                     (or LPT3:) change the default 00 at xxxx:0C7A
  2131.                     and at xxxx:0C84 to 01 (or 02).
  2132.  
  2133.                     The start of the menu text table (532 bytes,
  2134.                     beginning with C9) is at offset xxxx:0151.
  2135.                     The "P" in PRINTER SETUP MENU" is at
  2136.                     xxxx:0172.
  2137.  
  2138.                     The printer control strings themselves begin
  2139.                     at xxxx:09A1.  Each function key (and each
  2140.                     shifted function key, with the exception of
  2141.                     F19 and F20) can be assigned a string up to
  2142.                     16 bytes long.  Each string must include a
  2143.                     delimiter of FF (255 decimal) that marks the
  2144.                     end of the string.  The beginning of the
  2145.                     string for each successive function key
  2146.                     starts at an address that is a multiple of 16
  2147.                     bytes above the base address (xxxx:09A1) of
  2148.                     the table.  You must pad the strings with
  2149.                     zeros for any locations that are not used by
  2150.                     actual control codes, so that each string
  2151.                     begins on a 16-byte boundary.
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.                                  Page -36-
  2173.  
  2174.           SIZE (and ATSIZE)                          Art Merrill
  2175.           Command(s)                                      No. 28
  2176.  
  2177.           ______________________________________________________
  2178.  
  2179.           Purpose:  Calculates the storage requirements of a file
  2180.                     or group of files, based on the number of DOS
  2181.                     clusters necessary to make floppy disk and
  2182.                     hard disk copies.
  2183.  
  2184.           Format:   SIZE [d:]     (all files, default directory)
  2185.                        or
  2186.                     SIZE [d:][path]filename[.ext]
  2187.  
  2188.           Remarks:  DOS stores files in fixed-length allocation
  2189.                     units called "clusters."  For floppy disks,
  2190.                     the cluster size is 1024 bytes (two 512-byte
  2191.                     sectors); for the PC and XT 10-Mb hard disk
  2192.                     the cluster size is 4084 bytes.  On such a
  2193.                     hard disk, whether a file is one byte or 4Kb
  2194.                     in actual length (as reported by DIR), it
  2195.                     requires the same amount (one cluster) of
  2196.                     storage space.  The PC AT's 20-Mb hard disk
  2197.                     is less wasteful in handling small files;
  2198.                     its minimum set-aside (cluster size) is 2048
  2199.                     bytes.  AT users should use ATSIZE.COM.
  2200.  
  2201.                     Entered without parameters, SIZE (or ATSIZE)
  2202.                     returns the number of bytes used by all files
  2203.                     in the current directory, the amount of space
  2204.                     required to copy them to a standard (360K)
  2205.                     floppy disk, and the amount of space required
  2206.                     for hard disk storage.
  2207.  
  2208.                     Entering B:SIZE returns the same information
  2209.                     for a disk in drive B:.  Pathnames and
  2210.                     wildcards are supported, so you could enter
  2211.  
  2212.                          SIZE \PROG\*.COM
  2213.  
  2214.                     to learn the number of .COM files, their
  2215.                     total size and storage requirements,
  2216.                     contained in your \PROG subdirectory.
  2217.  
  2218.                     Notes:
  2219.  
  2220.                     1.   Requires DOS 2.0 or later.
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.                                  Page -37-
  2236.  
  2237.           SNAPSHOT                                Steven Holzner
  2238.           Command (after running .BAS version)            No. 29
  2239.  
  2240.           ______________________________________________________
  2241.  
  2242.           Purpose:  Saves your current screen and up to three
  2243.                     additional prefabricated screens for
  2244.                     immediate display without leaving an
  2245.                     application program.
  2246.  
  2247.           Format:   SNAPSHOT     (loads memory-resident program)
  2248.                     <Ctrl-N>             (stores current screen)
  2249.                     <Ctrl-F>            (displays stored screen)
  2250.                     <Ctrl-A>             (displays screen A.DAT)
  2251.                     <Ctrl-B>             (displays screen B.DAT)
  2252.                     <Ctrl-C>             (displays screen C.DAT)
  2253.  
  2254.           Remarks:  SNAPSHOT is a memory-resident utility that is
  2255.                     incompatible with programs (such as XyWrite)
  2256.                     that take control of the keyboard interrupts.
  2257.                     While written in assembly languge, it is
  2258.                     presented here with a BASIC interface that
  2259.                     need be run only once, but which facilitates
  2260.                     entering the trigger keys you will use to
  2261.                     store the current screen, recall it, and to
  2262.                     recall up to three screens you can prepare
  2263.                     with an ASCII word processor and store under
  2264.                     the filenames A.DAT, B.DAT, and C.DAT.
  2265.  
  2266.                     When you load and run SNAPSHOT.BAS under
  2267.                     BASIC you will be prompted for the required
  2268.                     key selections.  Thereafter the program will
  2269.                     create SNAPSHOT.COM (it takes about two
  2270.                     minutes), which is a regular DOS command.
  2271.  
  2272.  
  2273.           Option 1: If your regular word processor is WordStar,
  2274.                     before running SNAPSHOT.BAS you should edit
  2275.                     it as follows:
  2276.  
  2277.                     1. In line 30, change the checksum shown from
  2278.                     51461 to 51462.
  2279.  
  2280.                     2. In line 430, change the third number (just
  2281.                     to the left of the -2) from 0 to 1.
  2282.  
  2283.                     The purpose of these changes is to provide a
  2284.                     "stripper" function so that WordStar files
  2285.                     will be readable from other applications.
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.                                  Page -38-
  2299.  
  2300.           STATLINE                                    John Socha
  2301.           Command                                         No. 30
  2302.  
  2303.           ______________________________________________________
  2304.  
  2305.           Purpose:  Displays 26th-line status indicators for the
  2306.                     NumLock, CapsLock, and ScrollLock toggle keys
  2307.                     on IBM monochrome, CGA, and Compaq monitors.
  2308.  
  2309.           Format:   STATLINE     (loads memory-resident program)
  2310.  
  2311.           Remarks:  STATLINE converts the normal 25-line text
  2312.                     mode display into 26 lines, using the
  2313.                     additional line to show a # sign for NumLock,
  2314.                     an up arrow for CapsLock, and a double-
  2315.                     pointed arrow for ScrollLock.
  2316.  
  2317.                     On a monochrome display, where insufficient
  2318.                     memory is available for a full 26th line,
  2319.                     two-thirds of that line is used by STATLINE;
  2320.                     the remainder echoes the first portion of the
  2321.                     top line of the regular display.
  2322.  
  2323.                     This utility is not compatible with the IBM
  2324.                     enhanced graphics adapter (EGA) and is best
  2325.                     suited for use with the color graphics
  2326.                     adapter (CGA) and with Compaq displays.
  2327.  
  2328.                     Notes:
  2329.  
  2330.                     1.   STATLINE is a memory-resident utility
  2331.                          and is known to be incompatible with a
  2332.                          number of keyboard macro programs.
  2333.                          Assembly language programmers will be
  2334.                          particularly interested in the extensive
  2335.                          discussion of the problems of co-
  2336.                          residency contained in the original
  2337.                          article (PC Magazine, Volume 5 Number
  2338.                          13), and in the .ASM listing that shows
  2339.                          how to reprogram the 6845 video
  2340.                          controller.
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.                                  Page -39-
  2362.  
  2363.           SWEEP                                  Charles Petzold
  2364.           Command                                         No. 31
  2365.  
  2366.           ______________________________________________________
  2367.  
  2368.           Purpose:  Causes a command to be successively executed
  2369.                     in every subdirectory on a hard disk.
  2370.  
  2371.           Format:   SWEEP Command [parameter(s)]
  2372.  
  2373.           Remarks:  SWEEP starts from the current directory.  In
  2374.                     order to use SWEEP to extend the range of a
  2375.                     command to all the subdirectories on a disk,
  2376.                     use CD (if necessary) to make the root
  2377.                     directory your current directory.  From the
  2378.                     root directory, the command
  2379.  
  2380.                          SWEEP DIR
  2381.  
  2382.                     will display the listings, by subdirectory,
  2383.                     of every non-hidden file on the disk.  To
  2384.                     erase all the .BAK files on a disk you need
  2385.                     only get into the root directory and issue
  2386.                     the command
  2387.  
  2388.                          SWEEP DEL *.BAK
  2389.  
  2390.                     SWEEP itself will not accept parameters other
  2391.                     than its command.  Thus, if you are on drive
  2392.                     C: and wish a directory of all files on drive
  2393.                     D: to be sent to your printer, you must first
  2394.                     make drive D: the current drive before you
  2395.                     issue the command
  2396.  
  2397.                          SWEEP DIR > LPT1
  2398.  
  2399.                     (In this case you would either need a copy of
  2400.                     SWEEP.COM on drive D: or else drive D: would
  2401.                     have to be listed on your PATH.)
  2402.  
  2403.                     SWEEP can execute .BAT file commands (and
  2404.                     even non-DOS commands, such as LOCATE.COM).
  2405.                     A useful file called CLEAN.BAT might consist
  2406.                     of the three lines
  2407.  
  2408.                     DEL *.BAK
  2409.                     DEL *.TMP
  2410.                     DEL *.OBJ
  2411.  
  2412.                     From the root directory, if you then enter
  2413.  
  2414.                          SWEEP CLEAN
  2415.  
  2416.                     all .BAK, .TMP, and .OBJ files will be erased
  2417.                     from the disk.
  2418.  
  2419.                     Notes:
  2420.  
  2421.                     1.   Requires DOS 2.0 or later.
  2422.  
  2423.  
  2424.                                  Page -40-
  2425.  
  2426.           UNDEL (Undelete)                        Steven Holzner
  2427.           Command                                          No.32
  2428.  
  2429.           ______________________________________________________
  2430.  
  2431.           Purpose:  Recovers files on double-sided floppy disks
  2432.                     that have been accidentally deleted.
  2433.  
  2434.           Format:   UNDEL [d:]filename[.ext]
  2435.  
  2436.           Remarks:  Unless special measures are taken, DOS does
  2437.                     not overwrite the contents of a file when it
  2438.                     deletes the file.  Rather, DOS simply changes
  2439.                     the first letter of the filename to E5 in its
  2440.                     directory table and unassigns the second (and
  2441.                     subsequent) clusters for the file from its
  2442.                     file allocation table.  When no files have
  2443.                     been subsequently stored to disk that would
  2444.                     use the deallocated clusters, the deleted
  2445.                     file can usually be recovered intact by
  2446.                     UNDEL.COM.
  2447.  
  2448.                     As an aid to recovery of ASCII files, the
  2449.                     UNDEL command may be given as
  2450.  
  2451.                     UNDEL/A [d:]filename[.ext]
  2452.  
  2453.                     The /A parameter is designed to provide a
  2454.                     display of each proposed cluster to be
  2455.                     recovered before it is actually included in
  2456.                     the undeleted file.  With late versions of
  2457.                     PC-DOS, however, the use of the /A parameter
  2458.                     has been found to return the error message,
  2459.                     "File Not Found Deleted".  In such cases,
  2460.                     entering UNDEL without the added parameter is
  2461.                     normally sufficient to recover the complete
  2462.                     file without loss.
  2463.  
  2464.                     Notes:
  2465.  
  2466.                     1.   UNDEL should not be used on 8-sector
  2467.                          disks (such as the distribution copy
  2468.                          of this disk), but only on 9-sector,
  2469.                          double-sided floppies.
  2470.  
  2471.                     2.   Requires the use of DOS 2.0 or later,
  2472.                          but the command does not recognize
  2473.                          pathnames.
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.                                  Page -41-
  2488.  
  2489.           VTREE (Visual Tree)                    Charles Petzold
  2490.           Command                                         No. 33
  2491.  
  2492.           ______________________________________________________
  2493.  
  2494.           Purpose:  Provides a visual representation of the tree-
  2495.                     structured subdirectories on a hard or floppy
  2496.                     disk.
  2497.  
  2498.           Format:   VTREE [d:]
  2499.  
  2500.           Remarks:  VTREE can display up to the full DOS limit of
  2501.                     32 levels of nested subdirectories.  Its
  2502.                     output may be redirected to a printer, but it
  2503.                     employs IBM "text-graphics" characters that
  2504.                     many printers cannot properly handle.  With
  2505.                     such printers, run PRSWAP.COM (included in
  2506.                     these utilities) before VTREE.
  2507.  
  2508.                     Notes:
  2509.  
  2510.                     1.   Requires DOS 2.0 or later.
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.                                  Page -42-
  2551.  
  2552.           WAITASEC (and SCROLL)                  Charles Petzold
  2553.           Command(s)                                      No. 34
  2554.  
  2555.           ______________________________________________________
  2556.  
  2557.           Purpose:  Uses the single-keystroke ScrollLock key to
  2558.                     halt a fast-scrolling display; then allows
  2559.                     you to scroll backwards, recalling previous
  2560.                     screens.
  2561.  
  2562.           Format:   WAITASEC     (loads memory-resident program)
  2563.                     <ScrollLock>             (activates command)
  2564.  
  2565.           Remarks:  WAITASEC is a memory-resident program that is
  2566.                     normally loaded through your AUTOEXEC.BAT
  2567.                     file.  Thereafter, alternately pressing and
  2568.                     releasing the ScrollLock key will halt and
  2569.                     restart a scrolling display, e.g., a lengthy
  2570.                     DIR listing.
  2571.  
  2572.                     While holding down the ScrollLock key to
  2573.                     freeze the display, if you also press one of
  2574.                     the cursor movement keys (Home, Up Arrow,
  2575.                     PgUp, End, Down Arrow, or PgDn), the display
  2576.                     will not resume scrolling when you release
  2577.                     the ScrollLock key.  Thereafter, the Up and
  2578.                     Down arrow keys move the display by one line,
  2579.                     the PgUp and PgDown move it by 25 lines, and
  2580.                     the Home and End keys take you to the
  2581.                     beginning and end of the stored screen
  2582.                     memory.  Pressing any non cursor key at this
  2583.                     point deactivates the stored mode, and the
  2584.                     original scrolling resumes.
  2585.  
  2586.                     Notes:
  2587.  
  2588.                     1.   WAITASEC will not work with an 80-column
  2589.                          color/graphics display if an unmodified
  2590.                          PC-DOS ANSI.SYS has been loaded.  (The
  2591.                          ANSI.SYS that comes with various
  2592.                          versions of MS-DOS does not cause
  2593.                          problems with WAITASEC.)  To run with
  2594.                          IBM's ANSI.SYS, make a copy
  2595.                          (MODANSI.SYS) of the original ANSI.SYS
  2596.                          and use DEBUG to patch the copy as
  2597.                          follows:
  2598.  
  2599.                          DEBUG MODANSI.SYS
  2600.                          E 29D 90 90
  2601.                          E 2A1 90 90
  2602.                          W
  2603.                          Q
  2604.  
  2605.                          Put the modified MODANSI.SYS in your
  2606.                          CONFIG.SYS file in place of ANSI.SYS.
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.                                  Page -43-
  2614.  
  2615.                     2.   Because of the way they handle TTY
  2616.                          output, certain EGA cards will not
  2617.                          permit WAITASEC to scroll backwards.
  2618.                          This problem can often be cured by
  2619.                          adding MODANSI.SYS, as above.
  2620.  
  2621.                     3.   WAITASEC does not save your current
  2622.                          display screen.  To save your current
  2623.                          display, before beginning a scroll,
  2624.                          enter the complementary SCROLL command,
  2625.                          and everything on the screen will scroll
  2626.                          off the top and be captured in the
  2627.                          WAITASEC buffer.
  2628.  
  2629.                     4.   While WAITASEC has been found compatible
  2630.                          with XyWrite III (XYKBD.COM loaded) on a
  2631.                          PC AT, as with other memory-resident
  2632.                          programs, unforeseen hardware and
  2633.                          software incompatibilities may be
  2634.                          encountered.
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676.                                  Page -44-
  2677.  
  2678.           WHERE (File Locator)                     Kiyoshi Akima
  2679.           Command                                         No. 35
  2680.  
  2681.           ______________________________________________________
  2682.  
  2683.           Purpose:  Searches all directories on a particular
  2684.                     drive and lists the paths of entries that
  2685.                     match the specified filename.
  2686.  
  2687.           Format:   [d:][path]WHERE [filename[.ext]]
  2688.  
  2689.           Remarks:  WHERE uses normal DOS filename specifications
  2690.                     to locate files.  Omitting a filename and
  2691.                     extension after the command defaults to WHERE
  2692.                     *.* and will list all non-hidden files on
  2693.                     your disk.
  2694.  
  2695.           Example:  The command WHERE *.BAT will find all
  2696.                     your batch files.  WHERE MO*.* would uncover
  2697.                     MODE.COM and MORE.COM and any other filename
  2698.                     that begin with MO.
  2699.  
  2700.                     Notes:
  2701.  
  2702.                     1.   Although submitted to us by Mr. Akima,
  2703.                          this program has its roots in one
  2704.                          originally written by John Socha.
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.                                  Page -45-
  2740.  
  2741.           XDEL                                    Ronald Czapala
  2742.           Command                                         No. 36
  2743.  
  2744.           ______________________________________________________
  2745.  
  2746.           Purpose:  Successively presents each filename in your
  2747.                     current directory for single-keystroke file
  2748.                     deletion or retention.
  2749.  
  2750.           Format:   XDEL [d:][file.ext]
  2751.  
  2752.           Remarks:  If no parameters are specified with XDEL, the
  2753.                     default filename *.* is used.  Both the
  2754.                     global characters ? and * may be used in
  2755.                     selecting the files to be presented.
  2756.  
  2757.                     The program produces an on-screen menu of
  2758.                     keystroke choices, as follows:
  2759.  
  2760.                     <F1> - deletes current file displayed
  2761.                     <PgDn> - skips current file displayed
  2762.                     <Home> - restarts file display
  2763.                     <Esc> - returns to DOS
  2764.  
  2765.                     Note:
  2766.  
  2767.                     1.   Although XDEL.COM requires DOS 2.0 or
  2768.                          later, you must use CHDIR (CD) if
  2769.                          necessary to make a subdirectory your
  2770.                          current directory.
  2771.                              
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.                                  Page -46-
  2803.