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