home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / HARDDISK.ZIP / HARDDISK.TXT
Encoding:
Text File  |  1987-02-24  |  78.8 KB  |  2,092 lines

  1. 
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                             A Hard Disk Operating System
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.                                          by
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.                                     Chuck Downing
  32.                                esoteric efficacy corp.
  33.                                     P.O. Box 2207
  34.                                  Littleton CO 80161
  35.  
  36.                                     (303)781-9190
  37.                                          or
  38.                          King's Bench BBS     (303)377-6725
  39.                         Control Systems BBS    (303)841-6065
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.          Copyright(C), 1987 esoteric efficacy corp.     All Rights Reserved
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                             A Hard Disk Operating System
  61.  
  62.                                   Table of Contents
  63.  
  64.  
  65.          Introduction                                                  1
  66.                The Computer System                                     1
  67.                BBS's and the Public Domain                             2
  68.                Why Are We Here?                                        2
  69.                Disclaimers                                             3
  70.                Kudos                                                   3
  71.  
  72.          Recommendations                                               5
  73.                Generic Software Descriptions                           5
  74.                Things I'd Do Over                                      6
  75.  
  76.          Basic Hardware                                                7
  77.                Hindsight is 20-20                                      7
  78.  
  79.          The Operating System                                          9
  80.                MS-DOS 2.11.22                                          9
  81.                AutoMenu 3.01                                           9
  82.                DS212                                                  10
  83.                DS212 Add-Ons                                          11
  84.                Data Backup Software                                   11
  85.                Other Useful Software                                  13
  86.                Operating System Cost                                  13
  87.                Software Sources                                       14
  88.                Possible System Alternates                             14
  89.                On the Horizon                                         15
  90.  
  91.          Putting It Together                                          16
  92.                Hardware Location                                      16
  93.                Installation                                           16
  94.                Formatting and Partitioning                            17
  95.                Your Data Framework                                    18
  96.                Daily Housekeeping                                     19
  97.                System Backup/Restore                                  19
  98.                Daily Backups                                          19
  99.                Weekly Backups                                         20
  100.                Monthly Backups                                        20
  101.                Semi-annual Re-formatting                              21
  102.  
  103.          Appendix A-List of Program Sources                           23
  104.          Appendix B-CONFIG.SYS                                        25
  105.          Appendix C-AUTOEXEC.BAT                                      26
  106.          Appendix D-AUTOMENU.MDF                                      27
  107.          Appendix E-Backup Batch Files                                32
  108.          Appendix F-Sample DS212 Screen                               39
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.                             A Hard Disk Operating System
  117.  
  118.  
  119.                                     Introduction
  120.  
  121.               My PC-clone and its operating system have been put together
  122.          'like Topsy'.  Although I have been working with computers since
  123.          1964, my current Tandy 1000 was my first venture into the world of
  124.          big memory computing in almost 15 years.  Fortunately, I became
  125.          interested in bulletin boards and user supported software in time
  126.          to save my budget from total ruin.  The words that follow will try
  127.          to show how a user-friendly hard disk software support system can
  128.          be set up for minimum cost.
  129.  
  130.          The Computer System
  131.  
  132.               On the Fourth of July 1985, I decided that the cost of a
  133.          basic PC-clone computer had reached my 'striking point'.  On that
  134.          day, a 128k Tandy 1000 with one floppy disk drive was selling for
  135.          $999 plus tax.  Since I already owned a color monitor for my Apple
  136.          II and an old Radio Shack dot matrix printer, I felt that I could
  137.          learn about the world of PC/MS-DOS computers without too much
  138.          investment.  Of course, only a few weeks later, I began to feel
  139.          the need for a second disk drive so that I could make backups in
  140.          the unattended mode.  Soon thereafter came the urge for much more
  141.          memory, resulting in the purchase of a mfb-1000 expansion board
  142.          from pbj, inc., which included a clock and an RS-232 port and
  143.          brought my system to 640k of RAM.
  144.  
  145.               As luck would have it, during the period of my system
  146.          expansion, I began to work part-time in a Radio Shack store,
  147.          giving myself exposure to more technical information and a chance
  148.          see computer peripherals in action all day long.  Besides, seeing
  149.          the sales flyers a week early gave me more opportunities to
  150.          develop an ache for each goody I could get at such a great deal!
  151.          So, over the winter of 1985-6, I added a high resolution color
  152.          monitor and a 'smart modem' to my PC-clone system.  In addition,
  153.          through sheer luck, I found the King's Bench Fido BBS, which was
  154.          set up to help owners of Tandy 1000's.
  155.  
  156.               Finally, after working with hard disks in the stores and
  157.          learning the limits of my original production, two floppy disk
  158.          Tandy 1000, I began to accumulate the parts of a hard disk system.
  159.          In May 1986, Radio Shack offered its hard disk controller board at
  160.          half price.  Coupled with a small employee discount, the deal was
  161.          too good to pass up.  Then, in August 1986, the company put its
  162.          10meg Hard Disk Drive on sale at half price.  Again, I jumped at
  163.          the deal, although I was concerned that I might have to buy a ROM
  164.          BIOS upgrade for my computer, since the computer press and company
  165.          rumors were reporting problems with hard disks and the old Tandy
  166.          1000.  Luckily, the rumors were wrong, because the all-Radio Shack
  167.          system fit together like a glove and has operated without a hitch
  168.          for six months.  In the meantime, I have left the company for
  169.          greener pastures, so this is not an endorsement of the product,
  170.          nor an attempt to curry favor with a boss.
  171.  
  172.  
  173.  
  174.  
  175.          A Hard Disk OS                                                 Page 2
  176.  
  177.  
  178.  
  179.  
  180.          BBS's and the Public Domain
  181.  
  182.               Being an inveterate reader, I was aware of the growing BBS
  183.          movement long before I added a modem to my PC-clone system.
  184.          Nonetheless, I feel more fortunate than most BBS devotees because
  185.          I live near Denver, the home of the King's Bench BBS.  That means
  186.          that the best information in the US about Tandy 1000 computing is
  187.          available to me for the cost of a local telephone call.  Ralph
  188.          Allison's board is the main reason for this document and for the
  189.          computer system it describes.
  190.  
  191.               There are really two concepts for legally distributing
  192.          computer software through the BBS network in the US--the concept
  193.          of Public Domain software and the concept of User Supported
  194.          Software, or Freeware.  About half of the software which is really
  195.          in the 'Public Domain' has a sentence or two in the accompanying
  196.          documentation which says that the programmer is donating his work
  197.          to the good of mankind.  The other half is likely undocumented and
  198.          has no marking of any kind to identify its original programmer or
  199.          to state that it has been copyrighted by anyone.  On the other
  200.          hand, there exists a questionable network of pirated software,
  201.          which comes complete with the programmer's introductory copyright
  202.          screen, floating around the BBS system.  Most concerned sysops,
  203.          such as Ralph Allison, try to avoid distributing these programs.
  204.  
  205.               User Supported Software and Freeware are two copyrighted
  206.          names for the same concept of software marketing.  Both are based
  207.          on the premise that most people are basically honest.  The
  208.          programmers allow distribution of their wares on the BBS system,
  209.          but include the appropriate words in the documentation which
  210.          appear to make it clear that the use of the programs is limited by
  211.          the same general restrictions as are found on the much more
  212.          expensive, shrink-wrapped stuff.  The authors of shareware rely on
  213.          the honesty of the user to not abuse the concept and to make the
  214.          specified donation if he is really using the program in his
  215.          system.  My experience has been that this distribution system
  216.          seems to work to effectively supply good programs at a cost more
  217.          representative of their true value.
  218.  
  219.          Why Are We Here?
  220.  
  221.               In early 1987, users of PC's are beginning to develop an
  222.          interest in having hard disk systems for their computers at home.
  223.          There seems to come a time in each user's development when
  224.          continually swapping floppy disks begins to be an unbearable
  225.          burden.  It is at that time that each of us start to read about
  226.          hard disks and the millions of bytes of data that can be stored on
  227.          them for instant access.  Since I am six months ahead of today's
  228.          neophyte, one purpose for this document is to try to smooth the
  229.          way for him.
  230.  
  231.  
  232.  
  233.  
  234.          A Hard Disk OS                                                 Page 3
  235.  
  236.  
  237.  
  238.  
  239.               In addition, there exist in the Public Domain and the
  240.          shareware area lots of good programs to help all of us manage our
  241.          hard disks, and our lives, better and inexpensively.  So, another
  242.          purpose for this document is to describe several of those programs
  243.          and to applaud the programmers for a job well done.
  244.  
  245.               Finally, as I suspect is the case with most of us, I fail to
  246.          keep a diary of my day-to-day work with my PC-clone.  Thus, I need
  247.          to write this document to help me remember in 1988 what I did to
  248.          set up my system, so I can replace it when I have my first 'head
  249.          crash'.
  250.  
  251.               This document will present some ideas about how to set up a
  252.          user-friendly hard disk operating system once the disk is attached
  253.          to the computer.  It will distill many of the magazine articles I
  254.          have absorbed in the last two years to develop my philosophy about
  255.          such a system.  The Appendix will include names and addresses for
  256.          the sources of the software which is described.  I will try to
  257.          total up the cost of those programs.
  258.  
  259.          Disclaimers
  260.  
  261.               Most of the programs mentioned in this document are
  262.          copyrighted by somebody.  The majority of them are offered for
  263.          sale by the copyright owner.  In addition, the computing equipment
  264.          discussed are the products of major manufacturers of computers.
  265.          The descriptions of either the software or the hardware should not
  266.          be construed as an endorsement of the quality of any specific
  267.          product, nor as an offer to sell it.  Further, no arrangements
  268.          exist between myself and the producer or manufacturer of any of
  269.          the products mentioned for sponsorship or promotional fees.
  270.          Therefore, this document provides no warranties or guarantees that
  271.          any of the products will perform as described on any computer
  272.          system except mine.  In addition, since I have no control over
  273.          others use of this information, I hold myself harmless for any
  274.          damages or lost data as a result of your use of the software
  275.          described herein.
  276.  
  277.          Kudos
  278.  
  279.               Two sysops of Denver area BBS's deserve my thanks for making
  280.          the software for my operating system available to me.  They are
  281.          Ralph Allison of the King's Bench Fido BBS (303-377-6725) and Don
  282.          Stone of the Control Systems BBS of Parker (303-841-6065).
  283.          Thanks, guys!
  284.  
  285.               I am especially devoted to reading the monthly efforts of
  286.          Miriam Liskin, in "Personal Computing Magazine", and Dave Rowell,
  287.          of "80 Micro Magazine".  Specific citations of their work will not
  288.          be made, but their philosophy has been distilled into mine.  In
  289.          addition, much of my information about PC-clones has been has been
  290.          collected from "COMPUTER SHOPPER".  A tip of the hat to these
  291.          folks.
  292.  
  293.  
  294.  
  295.  
  296.          A Hard Disk OS                                                 Page 4
  297.  
  298.  
  299.  
  300.  
  301.               Finally, thanks to my wife, D'Ann, and to two of my kids,
  302.          Elliott and Mary, for helping me proof-read this thing.  I
  303.          wouldn't have made it without them!
  304.  
  305.  
  306.  
  307.  
  308.          A Hard Disk OS                                                 Page 5
  309.  
  310.  
  311.  
  312.  
  313.                                    Recommendations
  314.  
  315.               Shopping for an operating system for your PC-clone and its
  316.          hard disk needs to be done carefully, to avoid the many pitfalls
  317.          and to be cost-effective.  Hopefully, you will be able to test the
  318.          major parts of the system before you buy them.  This is possible
  319.          with shareware and Public Domain software obtained through the BBS
  320.          system, and may be possible at some retail or commercial dealers.
  321.  
  322.               Your operating system should help you to feel comfortable
  323.          about using your PC-clone.  You will be together for a long time,
  324.          since major changes six months from now will be not only time
  325.          consuming, but also hazardous to your data.  The system described
  326.          here may not be well-suited to your personality, so you should
  327.          consult other sources of information before duplicating it, willy-
  328.          nilly.
  329.  
  330.               With millions of bytes of data and hundreds of individual
  331.          files of programs and information, it is easy to forget what is on
  332.          our hard disks and when we last used it.  Thus, it is necessary to
  333.          find at least one program which will help us find our way quickly
  334.          from sub-directory to sub-directory.  It is also necessary to
  335.          develop and practice a philosophy of good housekeeping and data
  336.          backups from day one.
  337.  
  338.          Generic Software Descriptions
  339.  
  340.               I have found that I work well with a menu-driven system.
  341.          Even though part of my system forces me to thoroughly understand
  342.          the workings of MS-DOS to originally develop the menus, my day-to-
  343.          day operations seem to go most smoothly with the help of menus.
  344.          Several shareware programs exist to make menu-driven operations
  345.          possible.  Some attempt to isolate the user from DOS from the
  346.          start, while others require a basic knowledge of the subject to
  347.          make them work.  I like the latter, but the choice is yours.
  348.  
  349.               Some Public Domain software comes with no documentation, or
  350.          at least has become separated from its instructions over time.
  351.          The challenge of trying to understand how to use this stuff is
  352.          interesting, but may create time-consuming side tracks when you
  353.          have to use the programs on a day-to-day basis.  I generally avoid
  354.          programs such as this, mainly because they could mess up the data
  355.          on my hard disk before I can bat an eye.
  356.  
  357.               I have found some software which I might have considered for
  358.          this system, except for the asking price.  Even in the shareware
  359.          marketplace, there are a few programmers with an extremely
  360.          inflated view of the value of their work.  If I have heard of
  361.          competing programs, I evaluate all of them on the bases of system
  362.          compatibility and out-of-pocket costs.
  363.  
  364.  
  365.  
  366.  
  367.          A Hard Disk OS                                                 Page 6
  368.  
  369.  
  370.  
  371.  
  372.          Things I'd Do Over
  373.  
  374.               Even though I spent several months reading and thinking about
  375.          my hard disk system, there are some things I wish I had done
  376.          differently.  First, I refused to believe that other people were
  377.          right when they said, "You never have enough hard disk space."
  378.          With my 20 years experience, I felt that I could manage my work
  379.          within the limits of 10 million bytes with no problems.  Oh yeah,
  380.          you betcha!  Ten million bytes is a good size to learn how to use
  381.          a hard disk system, but not nearly enough to really do the things
  382.          you can do with one.
  383.  
  384.               Although I am writing this document to describe my system, I
  385.          feel that I should continue to study the subject.  There probably
  386.          exists a more compact system than I have put together.  It is also
  387.          likely to be more efficient and easier to use.  I dream that
  388.          somewhere out there is somebody who is a year ahead of me, who has
  389.          written his own efficient operating system.
  390.  
  391.               Finally, I am still looking for a good, shareware hard disk
  392.          backup system.  Not only have I neglected to follow my own advice
  393.          about continuous backups, but also have I failed to find an
  394.          efficient, cost-effective way to make them.  I'm sure that such a
  395.          program exists.
  396.  
  397.  
  398.  
  399.  
  400.          A Hard Disk OS                                                 Page 7
  401.  
  402.  
  403.  
  404.  
  405.                                    Basic Hardware
  406.  
  407.               When I purchased my basic Tandy 1000, it was available in the
  408.          stores in only one configuration--a case with 128k of RAM, one
  409.          floppy disk drive and a keyboard.  Of course, it came with lots of
  410.          things that other clones didn't have, such as built-in video,
  411.          printer and light-pen adapters.  On the other hand, it had room
  412.          for only three 10-inch expansion boards.  So, it was just a basic
  413.          PC/MS-DOS computer, with a few bells and whistles.
  414.  
  415.               Adding a second floppy disk drive was easy, as was expanding
  416.          the RAM.  All I had to do was plunk down the money, read the
  417.          instructions and 15 minutes later, I was in business.  Not so with
  418.          a hard disk, however.
  419.  
  420.               As I began to read about hard disks, I found that there may
  421.          be system compatibility problems.  First, since the Tandy 1000 was
  422.          an almost PC-clone, not all hard disk manufacturers knew how to
  423.          make controllers for it.  In addition, the early production Tandy
  424.          1000's, like mine, with the original ROM BIOS, were particularly
  425.          difficult for the manufacturers to work with.  Fortunately, I was
  426.          able to buy a Radio Shack hard drive controller and external 10
  427.          meg hard disk at a discounted sale price.  I am lucky that it
  428.          worked with no problems!
  429.  
  430.               Again, having read the installation instructions and the
  431.          other documentation, putting the system together was only a matter
  432.          of a few minutes work.  Partitioning and formatting the hard disk
  433.          was also pretty easy, since I expected to use it only with one
  434.          operating system, MS-DOS.  With only 10 million bytes of storage,
  435.          more than one partition is likely only a dream, anyway.
  436.  
  437.               Other parts of the system include an external 'smart modem'
  438.          and an older dot matrix printer.  I have an external modem with
  439.          the philosophy that the RS-232 board I own can work up to 9600
  440.          baud and when Ma Bell and friends can tolerate that speed,
  441.          external modems will, too.  All I have to replace is the modem,
  442.          not an internal board and modem.  Since printers cost more than
  443.          computers these days, my DMP-500 will have to do until I can
  444.          justify something different.
  445.  
  446.          Hindsight is 20-20
  447.  
  448.               On looking back, my striking point was probably about six
  449.          months early.  Had I waited for the Tandy 1000A, with the updated
  450.          ROM BIOS, I understand that some of my compatibility worries would
  451.          have been eased.  On the other hand, it is likely that the pbj,
  452.          inc. memory expansion board may not have been a viable alternate.
  453.          Careful shopping still would have been needed to get the perfect
  454.          system.
  455.  
  456.  
  457.  
  458.  
  459.          A Hard Disk OS                                                 Page 8
  460.  
  461.  
  462.  
  463.  
  464.               While a 10 meg hard disk system is adequate for fooling
  465.          around, I probably should have spent the money for a ROM BIOS
  466.          upgrade to a Tandy 1000A.  This would have allowed me to purchase
  467.          a 20 meg or larger hard disk system.  I suspect that another 10
  468.          million or so bytes of storage would have made my life easier.
  469.          However, it is possible that hard disk space is just like closet
  470.          space--you can never have enough.
  471.  
  472.  
  473.  
  474.  
  475.          A Hard Disk OS                                                 Page 9
  476.  
  477.  
  478.  
  479.  
  480.                                 The Operating System
  481.  
  482.               Most PC-clones come bundled with a version of PC/MS-DOS. They
  483.          may have other software included, too.  Some of the bundled
  484.          software will let you format and partition a hard disk--others
  485.          will not.  My experience was that some of the basic hard disk
  486.          utilities came with MS-DOS, while the rest of them were included
  487.          with the hard drive controller.  Be sure that your hard disk drive
  488.          will boot up with your computer before you take delivery and pay
  489.          the money!
  490.  
  491.               Assuming you have passed that hurdle, Appendix A includes a
  492.          list of sources for the shareware discussed below.  With that list
  493.          it is not necessary to have access to a modem, although having a
  494.          friend with one will make putting the system together easier.
  495.          This section will discuss the basics of my hard disk operating
  496.          system.
  497.  
  498.          MS-DOS 2.11.22
  499.  
  500.               MS-DOS 2.11 was included in the price with my Tandy 1000.
  501.          The upgrade to version 2.11.22 was free.  This disk operating
  502.          system seems to work well with the Tandy 1000 10meg hard drive.
  503.          Its major drawback is that it uses a minimum of 4096 bytes of disk
  504.          space for each file on the drive.  This means, for instance, that
  505.          a 128-byte batch file takes up 4096 bytes of space!
  506.  
  507.          AutoMenu 3.01
  508.  
  509.               This program is the basis for the user-friendly nature of my
  510.          hard disk operating system.  Written by Marshall W. Magee, of
  511.          Magee Enterprises, AutoMenu is available both on the BBS system
  512.          and by mail-order.  The suggested contribution shown on the cover
  513.          page of the documentation for version 3.01 is $30.00.  A different
  514.          price may now be in force, since that documentation is dated July
  515.          15, 1985.
  516.  
  517.               AutoMenu allows the user to develop up to eight menu screens
  518.          which may contain up to eight choices each.  To take the action
  519.          specified by the menu, an item may be selected by pressing a digit
  520.          or the Function Key with the same number.  Alternately, one may
  521.          use the arrow keys to point to the item, and then press <ENTER> to
  522.          take that action.  Changing pages can be done either with the PGUP
  523.          and PGDN keys or with HOME and END.
  524.  
  525.               Screen colors and time and date displays may be customized
  526.          for AutoMenu.  In addition, Mr. Magee has programmed password
  527.          protection and menu 'chaining' into the system.  All in all,
  528.          AutoMenu is easy to use and to customize.
  529.  
  530.  
  531.  
  532.  
  533.          A Hard Disk OS                                                Page 10
  534.  
  535.  
  536.  
  537.  
  538.               A rudimentary knowledge of PC/MS-DOS is needed to use
  539.          AutoMenu.  Someone must create the menu file, AUTOMENU.MDF, for
  540.          the program to read.  He must plan for the needs of the end user
  541.          and make the menus be user-friendly.  AutoMenu is the tool, it is
  542.          up to him to make good use of it.  My current version of
  543.          AUTOMENU.MDF can be found in Appendix D.
  544.  
  545.          DS212
  546.  
  547.               Directory Scanner, version 2.12, may be the most cost
  548.          effective program in my operating system.  It was written by LCDR
  549.          Nat Martino while he was assigned to the US Naval Academy.
  550.          Although his documentation says nothing about copyrights and/or
  551.          Public Domain, I have been assuming that, as an employee of the US
  552.          Government, he could not be paid by a third party for something he
  553.          did on the taxpayers' time.  So, I count the cost for DS as $0.00.
  554.  
  555.               I use Directory Scanner at least once every half-hour, unless
  556.          I am in the middle of writing a long document like this.  It does
  557.          the following things for me:
  558.  
  559.               - shows a tree of my hard disk directory
  560.  
  561.               - shows a list of up to 60 files in the current directory
  562.  
  563.               - lets me execute a program with two key strokes
  564.  
  565.               - lets me start editing or listing a file with one key stroke
  566.  
  567.               - gives complete access to all files on my hard disk
  568.  
  569.               - tells the attributes of each file--read only, hidden,
  570.                 system
  571.  
  572.               - provides an easy-to-use backup utility
  573.  
  574.               - lets me see what's on a floppy with three key strokes
  575.  
  576.          The documentation for the backup utility leaves a little to be
  577.          desired, though.  I have learned to use it only for those
  578.          subdirectories which will fit on one floppy diskette (360k).
  579.          Nevertheless, DS212 is an extremely important part of my operating
  580.          system.
  581.  
  582.               DS212 comes without a file EDIT or LIST program, but will
  583.          allow you to use your favorite programs if you rename them
  584.          EDIT.COM and LIST.COM.  I will discuss the programs I have adapted
  585.          in the next few paragraphs.  In addition, DS212 has no way to
  586.          unERASE a hard disk file and no way to show you where the
  587.          fragments of a file are located.  I have rejected DS212's
  588.          competitors, though, because it is so easy to eXecute a program
  589.          from DS212.
  590.  
  591.  
  592.  
  593.  
  594.          A Hard Disk OS                                                Page 11
  595.  
  596.  
  597.  
  598.  
  599.          DS212 Add-Ons
  600.  
  601.               Vernon D. Buerg seems to have devoted his life to continuing
  602.          to improve his LIST program.  At last word, he had gotten to
  603.          version 6.0h.  For his modest $15.00 asking price, LIST is a very
  604.          good file-listing program.  I have yet to use all of its features.
  605.  
  606.               Several versions of LIST have been 'attached' directly to
  607.          DS212 with no apparent problems from either program.  In addition,
  608.          LIST can be invoked from DOS to list any type of file you can save
  609.          on your hard disk.  It can also let you compare two files on the
  610.          screen at the same time.  I generally access LIST by pointing to
  611.          it with the DS arrow and pressing <L>.
  612.  
  613.               A relative newcomer to my system is CSE.COM, which I have
  614.          renamed EDIT.COM.  This program is a full screen editor originally
  615.          written for the computer center at The Colorado School of Mines by
  616.          Dan Smith.  It has been adapted to the PC keyboard by Joe
  617.          Applegate, a King's Bench member and CSM employee.  Since this
  618.          program, too, was developed with taxpayer money, it is in the
  619.          Public Domain and costs $0.00.
  620.  
  621.               The CSE keyboard interpretation can be modified to suit your
  622.          fancy.  Since I use PC-WRITE and GW-BASIC a lot, my keyboard
  623.          layout is a combination of the major keystrokes from those
  624.          programs.  The only problem I have found with CSE is that there
  625.          are four keys on my Tandy 1000 keyboard which give it 'heartburn'.
  626.          Those keys send no apparent scan code through DOS or BIOS, but
  627.          they do generate a 'key has been pressed' signal.  CSE bombs
  628.          whenever I press one of these keys.
  629.  
  630.          Data Backup Software
  631.  
  632.               During the time I have been working off-and-on on this
  633.          document, I have continued to try to find good software to help
  634.          develop a safe data backup philosophy.  Although my system is
  635.          getting better, I still have not achieved perfection.  My dilemma
  636.          exists because the BACKUP and RESTORE commands (utilities?) with
  637.          MS-DOS 2.11.22 and the Tandy 10meg Hard Disk Drive do not seem to
  638.          work when a sub-directory contains more than 360k bytes of data.
  639.          In addition, they are not automated to force me to make a backup
  640.          when I should.
  641.  
  642.               For the moment, my backup system is based on three major
  643.          programs I have discovered in the last two months.  Two of them
  644.          are written by the same programmer, Norm Patriquin, while the
  645.          third is by Walt Kirspel of Knowledge Based Solutions, Inc.  Other
  646.          parts of the system are there, but they play minor roles.
  647.  
  648.  
  649.  
  650.  
  651.          A Hard Disk OS                                                Page 12
  652.  
  653.  
  654.  
  655.  
  656.               SUPER-Search, now known as PSEARCH, is one of Norm
  657.          Patriquin's utilities.  He suggests a donation of $10.00 for
  658.          registration.  It allows the user to find files on his disk based
  659.          on tens of combinations of name, extension, date of update and
  660.          attributes.  It is also a text search program to help you find
  661.          earlier references to a phrase, topic, person or whatever.  This
  662.          latter mode is not used for purposes of my present system.
  663.  
  664.               I use PSEARCH to identify those data files on my hard disk
  665.          which were updated within the last 1, 7 or 30 days, depending upon
  666.          my backup step.  The program writes a list of the files to another
  667.          disk file which is used as redirected input for some other
  668.          programs.  With the DOS Command FIND, I can strip away things I
  669.          don't want to save, such as AUTOTEMP.BAT from AutoMenu and
  670.  
  671.          PSCMDS.BAT from PSEARCH, to minimize the process time and amount
  672.          of space used on a diskette.  Samples of how I do this are shown
  673.          in Appendix E in TODAYBAK.BAT, YESDYBAK.BAT, WEEKBACK.BAT and
  674.          MONTHBAK.BAT.
  675.  
  676.               Walt Kirspel's contribution to my system is a little program
  677.          called REP.  It allows me to REPeat any DOS command or program
  678.          over and over to my heart's content.  Since it accepts re-directed
  679.          input, the output from PSEARCH can be used as input to REP to copy
  680.          a list of files from one place to another or to ARChive a long
  681.          list of files.  These are the uses made for REP in the Batch Files
  682.          mentioned above.  Walt has placed REP in the Public Domain, so its
  683.          cost is $0.00.
  684.  
  685.               ARC, by System Enhancement Associates, is becoming one of the
  686.          standards of the data compression world.  Its major uses are to
  687.          compact information to reduce modem transmission time and to
  688.          encrypt programs and data for security reasons.  I choose to use
  689.          it in my backup system to save space on my diskettes.  Although I
  690.          use it for many other things, I will count its total cost of
  691.          $35.00 as a part of the hard disk operating system.
  692.  
  693.               PKARC is a Public Domain 'Fast ARC' program.  I use it to
  694.          save the backup files, but still need ARC, since PKARC will not
  695.          'unARC' the files that is saves.  PKARC comes from Phil Katz at a
  696.          suggested price of $15.00.
  697.  
  698.               Several little utilities are incorporated into the backup
  699.          system.  QUERY lets me answer simple questions and either FORMAT a
  700.          new diskette or not.  SETARCH is my own answer to a need for
  701.          changing the Archive attribute of the files I have just backed up,
  702.          while SETUPDAT is its complement.  These three programs are in the
  703.          system at $0.00.  Alternately, PALERT, by Norm Patriquin, is
  704.          available for $10.00.  It tells me when a diskette is getting
  705.          full, so that I can decide what to do.  Please see Appendix E for
  706.          examples of how I use these little gems.
  707.  
  708.  
  709.  
  710.  
  711.          A Hard Disk OS                                                Page 13
  712.  
  713.  
  714.  
  715.  
  716.               The third major program in my backup system showed up on a
  717.          diskette from Norm Patriquin when I registered for PSEARCH.
  718.          Apparently, PDAILY was his latest effort, thrown in gratis.
  719.          Although it is copyrighted, he requests no donation for it.
  720.          I use PDAILY to force myself to make a backup of everything I did
  721.          yesterday.  The first time I turn on my computer each day, PDAILY
  722.          starts the batch file called YESDYBAK.BAT.  This action is a good
  723.          start to developing my backup habits!
  724.  
  725.          Other Useful Software
  726.  
  727.               A number of other good programs are a part of my resident
  728.          operating system.  They do take up RAM, so they may not all be
  729.          necessary for someone with less than 640k.  Included are:
  730.  
  731.               - KBFIX2, used mainly for a 'sticky' CAPS key, $0.00
  732.  
  733.               - MQ.COM and DQ.COM, simpler CHKDSK's, $0.00
  734.  
  735.               - SCREEN, to blank the monitor after 5 minutes, $0.00
  736.  
  737.               - DPATH, to make files easier to find, $0.00
  738.  
  739.               - PTRSPOOL, for efficient print spooling, $0.00
  740.  
  741.               - REBOOT, a software jump to 'computer reset', $0.00
  742.  
  743.          Operating System Cost
  744.  
  745.               The following table lists the software described so far and
  746.          gives my out-of-pocket cost for obtaining it.  You should be aware
  747.          that some of these asking prices have changed since I made my
  748.          donations.
  749.  
  750.               Program Name                         Suggested
  751.                                                    Donation
  752.  
  753.               MS-DOS 2.11.22                       Bundled with t1k
  754.               AutoMenu, v. 3.01                    $30.00
  755.               Directory Scanner, v. 2.12             0.00
  756.               LIST, v. 6.0h                         15.00
  757.               CSE (renamed EDIT)                     0.00
  758.               PSEARCH                               10.00
  759.               REP                                    0.00
  760.               ARC                                   35.00
  761.               PKARC                                 15.00
  762.               QUERY, SETARCH, SETUPDAT               0.00
  763.               PDAILY                                 0.00
  764.               PALERT                                10.00
  765.               KBFIX2, SCREEN, MQ, DQ                 0.00
  766.               DPATH, REBOOT, PTRSPOOL                0.00
  767.                                                    -------
  768.               TOTAL COST                          $115.00
  769.  
  770.  
  771.  
  772.  
  773.          A Hard Disk OS                                                Page 14
  774.  
  775.  
  776.  
  777.  
  778.          Software Sources
  779.  
  780.               Except for MS-DOS, which came with my Tandy 1000, and
  781.          SETARCH and SETUPDAT, which I wrote myself, all of the software in
  782.          my operating system has been obtained through the BBS system.  My
  783.          favorites are King's Bench Fido of Denver and Control Systems of
  784.          Parker, CO.  I have seen both AutoMenu and LIST advertised in
  785.          computer magazines.  In addition, some of the freebies can be
  786.          found on Public Domain disks being advertised in those same
  787.          magazines.
  788.  
  789.               Appendix A lists the addresses of the programmers, when they
  790.          were given in the documentation.  I'm sure that each of them would
  791.          be happy to make you a copy of his program(s), if you send a
  792.          donation along with a postpaid mailer and a formatted floppy
  793.          diskette.
  794.  
  795.               SETARCH and SETUPDAT will soon be available on the BBS
  796.          circuit.  First, I must write short documentation files for them.
  797.  
  798.          Possible System Alternates
  799.  
  800.               I have tried, and rejected, several major programs which
  801.          could have been incorporated into my system.  At present, I can
  802.          recall no major problem with any of them.  They were generally
  803.          rejected because they didn't do exactly what I felt I needed at
  804.          the time.
  805.  
  806.               For instance, Dosamatic is a possible candidate to perform
  807.          most of the file maintenance and locating functions now being done
  808.          by DS212.  It seems to have a fairly user-friendly, menu-driven
  809.          interface, and performs most of the file-related tasks you would
  810.          need.  For me, however, the complicated method of eXecuting a
  811.          program was the deciding factor in its disfavor.  Dosamatic was
  812.          available at the 1985 suggested cost of $39.00 from Marin Pacific
  813.          Software.
  814.  
  815.               Another goody, which might have been used as a user
  816.          interface, is Extended Batch Language, EBL.  Lots of people use
  817.          this extension to DOS for all kinds of tasks, particularly for
  818.          supporting 'computer illiterates' who are, nevertheless, forced to
  819.          work with a PC.  Had I had FANSI-CONSOLE in my system at the time
  820.          I was testing EBL, I probably would have kept it.  Its proposed
  821.          price in July 1986 was $49.00, from Seaware Corporation.
  822.  
  823.               Incremental Backup Utility, IBU, is available on the BBS
  824.          system.  Its main purpose is given by its title, to make hard disk
  825.          backups.  I found it to be cumbersome to use.  For me, it was
  826.          going to be a non-productive addition to my system.  It may work
  827.          for some people, however.  IBU costs $20.00 in 1984 dollars and
  828.          comes from Mike Hodapp.
  829.  
  830.  
  831.  
  832.  
  833.          A Hard Disk OS                                                Page 15
  834.  
  835.  
  836.  
  837.  
  838.               Creative thinkers, who are also adept programmers, can
  839.          probably develop ways to control their computer and hard disk
  840.          using only PC/MS-DOS.  That was the original intent of MicroSoft,
  841.          of course.  Reportedly, with each new version of MS-DOS, hard disk
  842.          management gets better and better.  So, well-planned batch files
  843.          have been used alone for the job.
  844.  
  845.          On the Horizon
  846.  
  847.               FANSI-CONSOLE is currently being tested in my Tandy 1000.  It
  848.          really has no major place in this document, although it will
  849.          replace the functions of KBFIX2 and SCREEN.  Generally, FANSI-
  850.          CONSOLE will dictate whether modifications to my operating system
  851.          will be compatible.
  852.  
  853.               I do own a copy of CP/M.  Since lots of 8088 software is
  854.          supported by this operating system, it is a definite candidate for
  855.          continued use in an expanded hard disk environment.  This is
  856.          especially true when one considers the number of CP/M-based
  857.          programs in the Public Domain arena.
  858.  
  859.               As long as my telephone bill can be paid, I will be roaming
  860.          the BBS system.  Therefore, tomorrow I may find the answer to my
  861.          every prayer and completely revamp my hard disk operating system.
  862.          It is not likely that this will happen, but it is always possible!
  863.  
  864.  
  865.  
  866.  
  867.          A Hard Disk OS                                                Page 16
  868.  
  869.  
  870.  
  871.  
  872.                                  Putting It Together
  873.  
  874.               Before purchasing a hard disk system, several things need to
  875.          be considered.  For purposes of this document, the only one of
  876.          major importance is whether to purchase an internal or an external
  877.          hard disk.  Following that decision are several minor, yet
  878.          important, steps which can make a difference in how things go for
  879.          the first six months or so of system use.
  880.  
  881.          Hardware Location
  882.  
  883.               When you look around your computer work area, several
  884.          questions need consideration:
  885.  
  886.               - Is your desktop small or large?
  887.  
  888.               - Can you put something on the floor which won't be kicked by
  889.                 by you, one of the kids, the dog or the vacuum cleaner?
  890.  
  891.               - Does your computer have enough expansion slots left to
  892.                 accommodate a hard disk?
  893.  
  894.               - Can your computer supply enough power for an internal
  895.                 hard drive?
  896.  
  897.          If you have a small workspace or if someone who might get near it
  898.          is 'klutzy', consider an internal drive.  On the other hand, if
  899.          you can find a good place for an external hard disk, it may the
  900.          the system of choice.  Most external hard disks come with long
  901.          enough cables that they can go on the floor or a nearby bookshelf.
  902.          In addition, they have a built-in power supply and cooling fan,
  903.          which mean that they won't be consuming the limited power from
  904.          your main computer system or creating additional heat inside the
  905.          case.
  906.  
  907.               If you do choose an external system, I understand that it may
  908.          be placed either horizontally or vertically.  I have read that the
  909.          mechanical system for reading and writing has been designed to
  910.          operate in either position.  Several authors have cautioned their
  911.          readers to format the hard disk in its final position, so that any
  912.          minor effects of gravity will be recognized from the start.
  913.  
  914.          Installation
  915.  
  916.               Most retailers will recommend having a 'trained installer'
  917.          install your hard disk into your computer.  For some people,
  918.          especially if they have purchased several systems at once, this
  919.          may be the most efficient method.  However, thousands of personal
  920.          computer owners have installed their own hard disk systems with no
  921.          apparent ill effects.  You probably can, too.
  922.  
  923.  
  924.  
  925.  
  926.          A Hard Disk OS                                                Page 17
  927.  
  928.  
  929.  
  930.               Since each hard disk system and PC-clone is likely to be
  931.          different from my Tandy 1000 and 10-meg Disk System, I will give
  932.          only the generalities of the installation procedure which I
  933.          followed.  First, BEFORE you even start to look for your
  934.          screwdriver, carefully read the manufacturer's owner's manual and
  935.          installation instructions from cover to cover.  After you have
  936.          collected the tools you will need, open your computer's case and
  937.          the packaging for the controller board and mentally review the
  938.          installation instructions, without actually connecting the parts.
  939.          Finally, follow the manufacturer's instructions, step-by-step,
  940.          making a check mark beside each paragraph as you finish it.
  941.  
  942.               Even though you may have closed your computer's case, the
  943.          installation work is not complete until you have partitioned and
  944.          formatted your hard disk.
  945.  
  946.          Formatting and Partitioning
  947.  
  948.               The last steps for getting your hard disk ready for your
  949.          system involve running three computer programs which will record
  950.          the correct information on the hard disk so that all of your other
  951.          software can use it.  When the hard disk comes from the factory it
  952.          has been tested and approved by the manufacturer, but all of the
  953.          tiny magnets on its surface may not be lined up the way the
  954.          controller board and your Disk Operating System expect them to be.
  955.          The program HSECT.COM is used to ensure that the necessary
  956.          magnetic codes are in place so that the controller can move the
  957.          read-write head(s) to the correct place when your DOS asks for
  958.          data.
  959.  
  960.               It is likely that most people will make the simplest choice
  961.          when running the next program, FDISK.COM.  Its purpose is to add
  962.          some additional information to the hard disk so your computer can
  963.          know where to find important data about the hard disk each time
  964.          you turn the system on to 'boot up.'  Advanced users, or people
  965.          with large-capacity hard disks, may wish to partition the disk so
  966.          that it acts as two or more 'logical drives' even though it is
  967.          really only one 'physical drive.'
  968.  
  969.               Finally, HFORMAT.COM is used to transfer your version of
  970.          PC/MS-DOS from your floppy disk to your hard disk.  Using this
  971.          program alone will not copy such things as ANSI.SYS, CONFIG.SYS or
  972.          AUTOEXEC.SYS to the hard disk.  These and others must be copied
  973.          using your DOS's COPY command.
  974.  
  975.               Again, I recommend that you leave your computer turned off
  976.          until you have read the manufacturer's instructions from beginning
  977.          to end.  You cannot damage anything if you don't follow them to
  978.          the letter, but you may overlook an important step if you are not
  979.          fully prepared.  Checking off each step as you do it will help to
  980.          make sure that you haven't missed anything.  If you have problems,
  981.          the manufacturer's technical telephone answerer will be most
  982.          cooperative if you seem to have tried to follow their procedure
  983.          carefully.
  984.  
  985.  
  986.  
  987.  
  988.          A Hard Disk OS                                                Page 18
  989.  
  990.  
  991.  
  992.  
  993.          Your Data Framework
  994.  
  995.               It is possible to use a hard disk without bothering with sub-
  996.          directories or user-friendly interfaces.  The top of my desk and
  997.          the floor of my office are evidence that I should be able to find
  998.          that 'important' stuff again, if I ever need it.  Of course,
  999.          searching through 700 to 800 files which are in no apparent order
  1000.          may be a bit more difficult than finding some program's
  1001.          documentation in my desktop filing system.  Therefore, you, too,
  1002.          probably need a sub-directory tree on your hard disk.
  1003.  
  1004.               Appendix F is a copy of one screen displayed by DS212.  The
  1005.          left side of the display shows a part of my sub-directory tree as
  1006.          it existed on February 10, 1987, while most of the display shows
  1007.          the files that were in my pcwrite sub-directory that day.  I have
  1008.          replaced some of the IBM screen graphics with characters which my
  1009.          Radio Shack DMP-500 printer can print.
  1010.  
  1011.               The directories and sub directories are in alphabetical
  1012.          order, as are the files in the pcwrite sub-directory.  This
  1013.          ordering has been done by the program.  It is not at all the order
  1014.          in which the sub-directories were created by MAKEDIR, or the order
  1015.          in which the letters and other documents were written.  Using
  1016.          DS212 to display the tree does help as a memory-jogger in finding
  1017.          files, too.
  1018.  
  1019.               I think it should be easy to see that I had developed two
  1020.          data bases with the CORNERstone system and seemed to be interested
  1021.          in working in six programming languages, including BASIC and
  1022.          Pascal.  I must have liked data base systems, since I established
  1023.          sub-directories for CORNERstone, dBASE III Plus and NUTSHELL.
  1024.          Although only eight characters are allowed for sub-directory
  1025.          names, it is possible to make the directory tree meaningful to
  1026.          yourself.
  1027.  
  1028.               I have two other rules for sub-directories.  DS212 can
  1029.          display a maximum of 60 files for any sub-directory.  Therefore, I
  1030.          try to limit each sub-directory to that many files so I can scan
  1031.          them easily.  Of course, I can use DS212's 'find' command or
  1032.          PSEARCH's capabilities if I really get desperate.  In addition, I
  1033.          try to limit the contents of each sub-directory to about 360k
  1034.          because I have not yet found a reliable back-up program which can
  1035.          safely and easily save more than one floppy disk's capacity.
  1036.  
  1037.               The second time I formatted my hard disk, I was able to try
  1038.          to improve the speed of the system by selectively RESTOREing the
  1039.          sub-directories.  I copied all of the files in the root directory
  1040.          first, followed by all of my programs such as FORMAT, BASIC, MASM,
  1041.          ED, PR, etc.  Then I copied the files in the \develop\library sub-
  1042.          directory.  In this way, I was able to keep these frequently-
  1043.          referenced files 'un-fragmented' on the disk for faster access.  I
  1044.          think this approach helped.
  1045.  
  1046.  
  1047.  
  1048.  
  1049.          A Hard Disk OS                                                Page 19
  1050.  
  1051.  
  1052.  
  1053.  
  1054.          Daily Housekeeping
  1055.  
  1056.               One problem with AutoMenu, the way I use it, is that it makes
  1057.          a generic file called AUTOTEMP.BAT to process a menu request.
  1058.          With the way I use the program, it is logically impossible to
  1059.          erase this batch file while it is still in use.  Thus, I have
  1060.          different, redundant copies of this file scattered all over my
  1061.          hard disk.  Even though each copy uses 4096 bytes of hard disk
  1062.          space, I am generally not aware that so many copies of the file
  1063.          exist until I watch PSEARCH run through all of my sub-directories.
  1064.  
  1065.               When I am busily creating or updating Assembly Language or
  1066.          QuickBASIC programs, I make lots of *.OBJ and *.BIN files.  If I'm
  1067.          not careful, these temporary files, too, can begin to clutter my
  1068.          hard disk.  I have not yet found the fool-proof reminder to help
  1069.          me remove these files at the end of the day.
  1070.  
  1071.               If I am reviewing some new software, I sometimes catch myself
  1072.          making extra copies of the COM or EXE programs just to get them
  1073.          into a sub-directory which is in my access PATH statement.  Likely
  1074.          as not, there those copies stay, long after they have outlived
  1075.          their usefulness.  I usually find them listed right beside a DOS
  1076.          utility I haven't used for at least two months.  Needless to say,
  1077.          with only 10 megs of hard disk, I periodically try to purge my
  1078.          system of these unused space-takers.
  1079.  
  1080.          System Backup/Restore
  1081.  
  1082.               For the moment, I can think of four reasons why one would
  1083.          wish to make and keep backups of computer data.  First, commands
  1084.          like ERASE are unforgiving and extremely fast.  Everyone can
  1085.          remember inadvertently ERASEing his most valuable file, whether it
  1086.          was a letter or a batch of data.  Second, human nature and Mother
  1087.          Nature being what they are, at some time in your computing life
  1088.          you will lose the electric power to your computer through no fault
  1089.          of your own.  When it happens, your most important file will have
  1090.          just been 'opened for writing' by DOS, so that it is now
  1091.          permanently inaccessible.  Third, most of the members of King's
  1092.          Bench Fido BBS who own hard disks have experienced at least one
  1093.          'head crash', in which the mechanical parts of their hard disk
  1094.          drive damaged the magnetic film on a disk.  Fourth, an occasional
  1095.          re-formatting and house-cleaning may be good for your hard disk.
  1096.          All of these events can be made easier with the consistent
  1097.          practice of data backup.
  1098.  
  1099.          Daily Backups
  1100.  
  1101.               Since I discovered the program PDAILY, making backups of
  1102.          yesterday's work has become much easier.  A part of my startup
  1103.          procedures now forces me to copy all of the files I created or
  1104.          updated yesterday to a floppy disk before I can go to work today.
  1105.          The mechanism for this step is included in Appendices C and E.
  1106.  
  1107.  
  1108.  
  1109.  
  1110.          A Hard Disk OS                                                Page 20
  1111.  
  1112.  
  1113.  
  1114.  
  1115.               I decided to make daily backups because my 10 meg system gets
  1116.          squeezed for space at times.  When I begin to sense that file
  1117.          accesses are moving slowly, I start to look for things to ERASE.
  1118.          In addition, I don't always remember to SET BACKUP ON when I am
  1119.          using CSE to edit files.  Sometimes, yesterday's version of a
  1120.          program is better than the version I'm working on now.  So, I do
  1121.          need to retrieve yesterday's work once in a while.
  1122.  
  1123.               In addition, because some of my data base files are so large,
  1124.          I use the FIND command to strip them out of the lists of files to
  1125.          be saved in the daily, weekly and monthly Batch Files.  Therefore,
  1126.          I must force myself to use the backup facility in DS212 to make
  1127.          copies of these files whenever I have been working on them.  I
  1128.          find DS to be well suited for this type of archival backups.
  1129.  
  1130.          Weekly Backups
  1131.  
  1132.               Certainly, anyone who uses a PC-clone for more than games
  1133.          should consider making backups of his data on a weekly basis.
  1134.          Even though I think that I do most of my work in my pcwrite and
  1135.          quickbas sub-directories, I am continually surprised every Friday
  1136.          to see how many places I wandered in a week's time.
  1137.  
  1138.               The bases for my weekly backup system are PSEARCH, REP and
  1139.          PKARC.  With PSEARCH, I can search all 10 megs in about one minute
  1140.          to make a list of all those files I have updated in the past week.
  1141.          After stripping .COM, .EXE and .DBF files, REP is used to help
  1142.          PKARC read a list of all the files to be ARCed.  This step can
  1143.          take as much as 15 to 20 minutes at the end of a busy week.
  1144.  
  1145.               I must initiate the weekly backup by myself--at the moment, a
  1146.          'weekly reminder' program is not really available in the Public
  1147.          Domain.  Since I have a Backup Menu available through
  1148.          AUTOMENU.MDF, my only problem is remembering to select that item
  1149.          each Friday afternoon.  Examples of AUTOMENU.MDF and WEEKBACK.BAT
  1150.          are found in Appendices D and E, respectively.
  1151.  
  1152.          Monthly Backups
  1153.  
  1154.               Since I plan to keep my monthly backup files until I re-
  1155.          format my hard disk, another problem needed to be addressed when
  1156.          thinking about how to do monthly backups.  I would like to use
  1157.          PSEARCH to find those files which were stripped from the backup
  1158.          list because they were going to be too big to fit on the diskette.
  1159.          An easy way to do this is to have PSEARCH look for all files which
  1160.          have their archive/update bit set.  However, I found that there
  1161.          was no readily available utility to change the archive/update bit
  1162.          using a list of files for input.  Therefore, I had to write
  1163.          SETARCH and its companion SETUPDAT for myself.
  1164.  
  1165.  
  1166.  
  1167.  
  1168.          A Hard Disk OS                                                Page 21
  1169.  
  1170.  
  1171.  
  1172.  
  1173.               Again, I must remember at the end of every month to initiate
  1174.          a backup process.  The routine MONTHBAK.BAT, shown in Appendix E,
  1175.          usually takes 30-45 minutes to complete.  It is nearly the same as
  1176.          WEEKBACK.BAT, with the addition of the REPeated use of SETARCH.
  1177.          Once more, I must also use DS212 separately to backup up any .DBF
  1178.          or .COM files I plan to save.
  1179.  
  1180.          Semi-annual Re-formatting
  1181.  
  1182.               About every six months, I begin to sense that all of the
  1183.          downloading, uploading, copying and moving I have done with the
  1184.          files on my hard disk has resulted in an inefficient, time-wasting
  1185.          system.  Therefore, it is time to start over with a clean slate.
  1186.          To do this requires lots of confidence in one's ability to restore
  1187.          the system to a reasonable semblance of what it was before he
  1188.          started the backup-format-restore process.  I think that the extra
  1189.          space made available and the time-savings are worth the
  1190.          nervousness involved with the procedure.
  1191.  
  1192.               I have found that DS212 has a nice feature built into its
  1193.          backup system.  With this subroutine, one may make a batch file
  1194.          which will re-create his sub-directory tree automatically.
  1195.          Knowing this, it is relatively easy to plan a strategy for
  1196.          ensuring that all of one's files are saved before starting the re-
  1197.          formatting step.  I proceeded as follows:
  1198.  
  1199.               - Use DS to prepare ds_f1.bat and ds_f2.bat
  1200.  
  1201.               - Use DS to backup ALL files in a data sub-directory
  1202.  
  1203.               - Find the master copy of ALL .COM and .EXE files
  1204.                    - if they are hard to find, use DS to back them up
  1205.  
  1206.               - Check for master copies of ALL other files, or back them up
  1207.  
  1208.          Even though I had master and backup copies of all my software and
  1209.          libraries, my 10 meg hard drive contained the equivalent of 10
  1210.          floppy disks full of data files.  I would expect many more
  1211.          floppies would be needed for larger systems, since data
  1212.          multiplies, but programs are infertile.
  1213.  
  1214.               I have not prepared a batch file for this backup procedure.
  1215.          Most of the work involved is ad hoc decision-making for which I
  1216.          have not developed enough confidence to program into a batch file.
  1217.          So, for the time being, I can't blame any mistakes on 'computer
  1218.          error.'
  1219.  
  1220.  
  1221.  
  1222.  
  1223.          A Hard Disk OS                                                Page 22
  1224.  
  1225.  
  1226.  
  1227.  
  1228.               Since I had the batch files made by DS, restoring the system
  1229.          after re-formatting was relatively straight-forward.  By COPYing
  1230.          unfragmented files from the diskettes to the hard disk sub-
  1231.          directories, I was able to create a set of contiguous files in the
  1232.          first one or two million bytes of the hard disk.  This makes
  1233.          program access and execution seem much faster.  In addition, by
  1234.          COPYing the library sub-directory to a 'clean' disk, these files
  1235.          are now contiguous.  My major sub-directories were added in the
  1236.          following order:
  1237.  
  1238.               - root
  1239.               - utility
  1240.                  - filework
  1241.                  - startup
  1242.               - develop\library
  1243.                    .
  1244.                    .
  1245.                    .
  1246.  
  1247.          About half of the sub-directories shown in Appendix F have not
  1248.          been restored almost two months after the last re-format.  They
  1249.          were obviously some of my favorites.
  1250.  
  1251.  
  1252.  
  1253.  
  1254.          A Hard Disk OS                                                Page 23
  1255.  
  1256.  
  1257.  
  1258.  
  1259.                                      Appendix A
  1260.  
  1261.                                List of Program Sources
  1262.                                (in the order mentioned)
  1263.  
  1264.  
  1265.  
  1266.          AutoMenu
  1267.          --------
  1268.  
  1269.          MAGEE ENTERPRISES
  1270.          6577 Peachtree Industrial Blvd.
  1271.          Norcross                   GA 30092-3796
  1272.  
  1273.  
  1274.          Directory Scanner (DS212)
  1275.          -------------------------
  1276.  
  1277.          LCDR Nat Martino, USN
  1278.          Pacific Missile Test Center (Code 4002)
  1279.          Point Mugu                 CA 93042-5000
  1280.  
  1281.          LIST
  1282.          ----
  1283.  
  1284.          Vernon D. Buerg
  1285.          456 Lakeshire Drive
  1286.          Daly City                  CA 94015-4223
  1287.  
  1288.          BBS phone number: (415)994-2944
  1289.  
  1290.          CSE (file editor)
  1291.          -----------------
  1292.  
  1293.          Dan Smith
  1294.          Colorado School of Mines
  1295.          Golden                     CO 80401
  1296.  
  1297.          PSEARCH, PDAILY, PALERT
  1298.          -----------------------
  1299.  
  1300.          Norm Patriquin
  1301.          P.O. Box 8308
  1302.          San Bernardino             CA 92412
  1303.  
  1304.          BBS phone number: (714)369-9766
  1305.  
  1306.          REP
  1307.          ---
  1308.  
  1309.          Knowledge Based Solutions, Inc.
  1310.          P.O. Box 338
  1311.          Succasunna                 NJ 07876
  1312.  
  1313.  
  1314.  
  1315.  
  1316.          A Hard Disk OS                                                Page 24
  1317.  
  1318.  
  1319.  
  1320.  
  1321.          ARC
  1322.          ---
  1323.  
  1324.          System Enhancement Associates
  1325.          21 New Street
  1326.          Wayne                      NJ 07470
  1327.  
  1328.          PKARC
  1329.          -----
  1330.  
  1331.          Phil Katz
  1332.          7032 Ardara Avenue
  1333.          Glendale                   WI 53209
  1334.  
  1335.          KBFIX2
  1336.          ------
  1337.  
  1338.          Skip Gilbrech
  1339.          90 Lexington Avenue #10-G
  1340.          New York                   NY 10016
  1341.  
  1342.          DOSamatic
  1343.          ---------
  1344.  
  1345.          Marin Pacific Software
  1346.          1001 Bridgeway, Suite 514
  1347.          Sausalito CA 94965
  1348.  
  1349.          Extended Batch Language (EBL)
  1350.          -----------------------------
  1351.  
  1352.          Seaware Corporation
  1353.          P.O. Box 1656
  1354.          Delray Beach FL
  1355.  
  1356.          IBU
  1357.          ---
  1358.  
  1359.          Mike Hodapp
  1360.          5609 Apache Road
  1361.          Louisville KY 40207
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.          A Hard Disk OS                                                Page 25
  1368.  
  1369.  
  1370.  
  1371.  
  1372.                                      Appendix B
  1373.  
  1374.  
  1375.  
  1376.  
  1377.                                  ****CONFIG.SYS****
  1378.  
  1379.  
  1380. buffers=20
  1381. files=20
  1382. break=on
  1383. device = clock.sys               'from pbj board
  1384. device = ansi.sys
  1385. device = ds_drive.sys d:c        'DS212 directory area, 1 hard drive=c:
  1386. device = spool.dev /16 /l1       'print spooler to LPT1:, 16k of RAM
  1387.  
  1388.          Copyright(C), 1987 esoteric efficacy corp.    All Rights Reserved
  1389.  
  1390.  
  1391.  
  1392.  
  1393.          A Hard Disk OS                                                Page 26
  1394.  
  1395.  
  1396.  
  1397.                                      Appendix C
  1398.  
  1399.               This Appendix shows my AUTOEXEC.BAT.  It includes comments
  1400.          which have been added for understanding.  This Batch File may not
  1401.          work when the comments are included--it has not been tested that
  1402.          way.
  1403.  
  1404.                                 ****AUTOEXEC.BAT****
  1405.  
  1406.  
  1407. echo off
  1408. set comspec=c:\command.com               'some programs need to know this
  1409. set ds=0706                              'colors for DS212
  1410. path c:\;c:\utility;c:\utility\filework  'so the programs get accessed
  1411. set lib=c:\develop\library               'for MASM and QuickBASIC
  1412. set dp=c:\pcwrite\definers               'used by DPATH to find files
  1413. set cse.key=c:\pcwrite\definers          'points CSE.COM to its key file
  1414. mode co 80
  1415. lf
  1416. mode lfon
  1417. screen /5                                'turn off screen after 5 minutes
  1418. scroller                                 'fix snow
  1419. bootgrey                                 'CTRL-ALT-F12=warmboot + greynums
  1420. dpath /nm                                'install DPATH with no messages
  1421. kbfix2 /d0 /b0 /kb1 /f1 /v0 /kt1 /ktr2   'makes 'sticky CAPS' and more
  1422. echo (bell)                              'a ^G is really here, but
  1423. echo (bell)                                  'it's a PC-WRITE command
  1424. prompt Enter the password$g              'sneaky, see COMPUTER SHOPPER 2/87
  1425.  
  1426.                             ****.........BAT****
  1427.                                (password.BAT)
  1428.  
  1429.               This Batch File is named password.BAT, where 'password' can
  1430.          be anything you want.  PDAILY returns an errorlevel of 0 if this
  1431.          is the first time you have run it today.  Otherwise, it returns an
  1432.          errorlevel of 1.
  1433.  
  1434.  
  1435. echo off
  1436. prompt $d $t$_$_$p$g                     'reset prompt
  1437. pdaily                                   'see if this is first time today
  1438. if errorlevel 1 goto early
  1439. extract                                  'run next Batch File
  1440. :early
  1441. yesdybak                                 'this file also calls extract.bat
  1442.  
  1443.                             ****EXTRACT.BAT****
  1444.  
  1445. echo off
  1446. automenu                                 'calls AutoMenu program
  1447. autotemp                                 'required by AutoMenu
  1448.  
  1449.          Copyright(C), 1987 esoteric efficacy corp.    All Rights Reserved
  1450.  
  1451.  
  1452.  
  1453.  
  1454.          A Hard Disk OS                                                Page 27
  1455.  
  1456.  
  1457.  
  1458.  
  1459.                                      Appendix D
  1460.  
  1461.  
  1462.                                 ****AUTOMENU.MDF****
  1463.  
  1464.               This is a copy of my AUTOMENU.MDF file, which makes a user-
  1465.          friendly interface.  The comments (. lines) have been added for
  1466.          clarity.  They have not been tested with the program itself.
  1467.  
  1468.               I have elected to use the option of Batch DOS Commands
  1469.          Resident (the ! lines).  An advantage is that I don't have short
  1470.          Batch Files each using 4096 bytes of space on the hard disk.  The
  1471.          disadvantage is that AutoMenu creates AUTOTEMP.BAT, which does
  1472.          take up 4096 bytes in each directory I access.
  1473.  
  1474.  
  1475. %esoteric efficacy corp                 MAIN MENU
  1476. *Write a Letter
  1477. !echo off
  1478. .
  1479. . DPATH will now let me edit PCWRITE's .DEF files
  1480. .
  1481. !dpath /o /c /nm
  1482. !cd \pcwrite
  1483. !ed
  1484. .
  1485. . DPATH will no longer allow writing to files outside current sub-dir
  1486. .
  1487. !dpath /nc /nm
  1488. *Use MultiPlan for accounting, etc.
  1489. !echo off
  1490. !cd \multplan
  1491. !spread
  1492. *Draw a Picture
  1493. !echo off
  1494. !cd\microill
  1495. !paint
  1496. *Make a Sign, etc.
  1497. !cd\pmaster
  1498. !pm
  1499. *Go BBS-hopping
  1500. !echo off
  1501. !cd \qmodem23
  1502. !callem
  1503. *Work on Files with DSCAN
  1504. !ds
  1505. *EXIT Back to MS-DOS
  1506. .
  1507. . here, I want AutoMenu out of memory, so I use '+'
  1508. .
  1509. +cd\
  1510.  
  1511.  
  1512.  
  1513.  
  1514.          A Hard Disk OS                                                Page 28
  1515.  
  1516.  
  1517.  
  1518.  
  1519. .
  1520. . /f option 'fixes' messed-up files--see COMPUTER SHOPPER Feb. 1987
  1521. .
  1522. +chkdsk /f
  1523. +echo .....
  1524. +echo You can come back with the password
  1525. +echo .....
  1526. ****REBOOT***
  1527. !reboot
  1528. %esoteric efficacy corp               REVIEW MENU
  1529. *Write a Review
  1530. !echo off
  1531. .
  1532. . DPATH will now let me edit PCWRITE's .DEF files
  1533. .
  1534. !dpath /o /c /nm
  1535. !cd \reviews
  1536. !ed standard.rvw
  1537. .
  1538. . DPATH will no longer allow writing to files outside current sub-dir
  1539. .
  1540. !dpath /nc /nm
  1541. *Communicate with Control Systems BBS
  1542. !echo off
  1543. !cd\qmodem23
  1544. !qmodem /S=contrsys.scr
  1545. *Work on Files with DSCAN
  1546. !cd\reviews
  1547. !ds
  1548. *EXIT Back to MS-DOS
  1549. .
  1550. . here, I want AutoMenu out of memory, so I use '+'
  1551. .
  1552. +cd\
  1553. .
  1554. . /f option 'fixes' messed-up files--see COMPUTER SHOPPER Feb. 1987
  1555. .
  1556. +chkdsk /f
  1557. +echo .....
  1558. +echo You can come back with the password
  1559. +echo .....
  1560. ****REBOOT***
  1561. !reboot
  1562. %esoteric efficacy corp          DEVELOPMENT MENU
  1563. *Work in BASIC
  1564. !cd\develop\basic
  1565. !basic
  1566. *Work in BASICA
  1567. !cd\develop\basic
  1568. !basica
  1569. *Work in QuickBASIC
  1570. !cd\develop\quickbas
  1571.  
  1572.  
  1573.  
  1574.  
  1575.          A Hard Disk OS                                                Page 29
  1576.  
  1577.  
  1578.  
  1579.  
  1580. .
  1581. . a fix is required since MS-DOS 2.11.22 causes a problem
  1582. .
  1583. !debug<t1kfix.fil
  1584. !ds
  1585. .
  1586. . undo the fix just in case
  1587. .
  1588. !debug<t1kunfix.fil
  1589. *Work in Assembly Language
  1590. !cd\develop\assembly
  1591. !ds
  1592. *Work on Files with DSCAN
  1593. !ds
  1594. *EXIT Back to MS-DOS
  1595. .
  1596. . here, I want AutoMenu out of memory, so I use '+'
  1597. .
  1598. +cd\
  1599. .
  1600. . /f option 'fixes' messed-up files--see COMPUTER SHOPPER Feb. 1987
  1601. .
  1602. +chkdsk /f
  1603. +echo .....
  1604. +echo You can come back with the password
  1605. +echo .....
  1606. ****REBOOT***
  1607. !reboot
  1608. %esoteric efficacy corp            DATA BASE MENU
  1609. *Work on Leadville documents (corner)
  1610. !echo off
  1611. !cd \corner
  1612. !corner leadvill
  1613. *Work on Magazine Clippings
  1614. !echo off
  1615. !cd \corner
  1616. !corner magazine
  1617. *In a Nutshell
  1618. !echo off
  1619. !cd \nutshell
  1620. !nutshell
  1621. *INDEX some disk files
  1622. !echo off
  1623. !cd \archives
  1624. !index
  1625. *Work on Files with DSCAN
  1626. !ds
  1627. *EXIT Back to MS-DOS
  1628. .
  1629. . here, I want AutoMenu out of memory, so I use '+'
  1630. .
  1631. +cd\
  1632.  
  1633.  
  1634.  
  1635.  
  1636.          A Hard Disk OS                                                Page 30
  1637.  
  1638.  
  1639.  
  1640.  
  1641. .
  1642. . /f option 'fixes' messed-up files--see COMPUTER SHOPPER Feb. 1987
  1643. .
  1644. +chkdsk /f
  1645. +echo .....
  1646. +echo You can come back with the password
  1647. +echo .....
  1648. ****REBOOT***
  1649. !reboot
  1650. %esoteric efficacy corp               BACKUP MENU
  1651. *Backup TODAY'S work
  1652. !todaybak
  1653. *Do a WEEKLY backup
  1654. !weekback
  1655. *Do a MONTHLY backup
  1656. !monthbak
  1657. *Work on Files with DSCAN
  1658. !ds
  1659. *EXIT Back to MS-DOS
  1660. .
  1661. . here, I want AutoMenu out of memory, so I use '+'
  1662. .
  1663. +cd\
  1664. .
  1665. . /f option 'fixes' messed-up files--see COMPUTER SHOPPER Feb. 1987
  1666. .
  1667. +chkdsk /f
  1668. +echo .....
  1669. +echo You can come back with the password
  1670. +echo .....
  1671. ****REBOOT***
  1672. !reboot
  1673. %esoteric efficacy corp              WAY OUT MENU
  1674. *Work in Pascal
  1675. !cd \develop\pascal
  1676. !ds
  1677. *Work with Artificial Intelligence
  1678. !cd\develop\artintel
  1679. !ds
  1680. *Work with ICON
  1681. !cd\develop\icon
  1682. !ds
  1683. *Work on Files with DSCAN
  1684. !ds
  1685. *EXIT Back to MS-DOS
  1686. .
  1687. . here, I want AutoMenu out of memory, so I use '+'
  1688. .
  1689. +cd\
  1690.  
  1691.  
  1692.  
  1693.  
  1694.          A Hard Disk OS                                                Page 31
  1695.  
  1696.  
  1697.  
  1698.  
  1699. .
  1700. . /f option 'fixes' messed-up files--see COMPUTER SHOPPER Feb. 1987
  1701. .
  1702. +chkdsk /f
  1703. +echo .....
  1704. +echo You can come back with the password
  1705. +echo .....
  1706. ****REBOOT***
  1707. !reboot
  1708. #EOF
  1709.  
  1710.          Copyright(C), 1987 esoteric efficacy corp.    All Rights Reserved
  1711.  
  1712.  
  1713.  
  1714.  
  1715.          A Hard Disk OS                                                Page 32
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740.                                      Appendix E
  1741.  
  1742.               This Appendix contains commented copies of my Batch Files for
  1743.          routine hard disk backup, YESDYBAK.BAT, WEEKBACK.BAT and
  1744.          MONTHBAK.BAT.  The comments probably make these files unworkable.
  1745.          In addition, the find command lines have been wrapped-around to
  1746.          fit on an 80-column display.  These lines will not work as they
  1747.          are shown.
  1748.  
  1749.  
  1750.  
  1751.  
  1752.          A Hard Disk OS                                                Page 33
  1753.  
  1754.  
  1755.  
  1756.  
  1757.                                 ****YESDYBAK.BAT****
  1758.  
  1759.               This Batch File is called by PDAILY.COM once each day.  Its
  1760.          purpose is to copy everything I did yesterday to a floppy in drive
  1761.          a:.  I have volume-labelled and sticky-labelled the diskettes for
  1762.          the days of the week.  At the moment, when I use a diskette
  1763.          without reformatting, this procedure copies backup0.dat for today
  1764.          over the top of backup0.dat for last time.  Thus, some of the
  1765.          information about where files came from is lost.
  1766.  
  1767.  
  1768. echo off
  1769. '
  1770. ' use PSEARCH to search all directories for files which were made within
  1771. ' the last day and make a list of them in PSCMDS.BAT
  1772. '
  1773. ps /a /f /n:1 /xf:&
  1774. echo stripping excess files
  1775. '
  1776. ' don't keep AUTOTEMP.BAT, PSCMDS.BAT or .COMs, .EXEs or .OBJs
  1777. ' ***NOTE*** how to strip find's output of "--------"
  1778. '
  1779. find /v "AUTOTEMP.BAT" pscmds.bat | find /v "PS" | find /v ".COM"|find /v
  1780.          ".EXE"|find /v ".OBJ"|find /v "--------" | find "." >backup1.dat
  1781. echo off
  1782. '
  1783. ' query will only accept what comes after the '@'
  1784. ' it reports location x of what you typed as errorlevel x
  1785. '
  1786. query Do you need to format a diskette (Y/N)? @yYnN
  1787. if errorlevel 3 goto noform
  1788. '
  1789. ' flpyform is my new name for the FORMAT command
  1790. ' renaming it keeps me from reformatting my hard disk in error
  1791. '
  1792. flpyform a: /v
  1793. goto formed
  1794. :noform
  1795. echo ...
  1796. echo Put a formatted diskette in Drive A
  1797. echo ...
  1798. pause
  1799. palert a:
  1800. '
  1801. ' query will only accept what comes after the '@'
  1802. ' it reports location x of what you typed as errorlevel x
  1803. '
  1804. query Now, do you need to format a diskette (Y/N)? @yYnN
  1805. if errorlevel 3 goto formed
  1806. flpyform a: /v
  1807. :formed
  1808. echo on
  1809. copy backup1.dat a:
  1810.  
  1811.  
  1812.  
  1813.  
  1814.          A Hard Disk OS                                                Page 34
  1815.  
  1816.  
  1817.  
  1818.  
  1819. '
  1820. ' this says "copy every file listed in backup1.dat to drive a:"
  1821. '
  1822. rep copy %%a a: <backup1.dat
  1823. erase pscmds.bat
  1824. erase backup1.dat
  1825. echo off
  1826. echo ...
  1827. '
  1828. ' (bell) means ^G, which is a PCWRITE command
  1829. '
  1830. echo (bell)All done.  Save the diskette in Drive A
  1831. echo ...
  1832. extract
  1833.  
  1834.  
  1835.  
  1836.  
  1837.          A Hard Disk OS                                                Page 35
  1838.  
  1839.  
  1840.                                  ****WEEKBAK.BAT****
  1841.  
  1842.               This Batch File must be run manually.  Its purpose is to use
  1843.          PKARC and REP to make an ARCed backup of everything done in the
  1844.          last seven days.  I have four floppies, volume-labelled and
  1845.          sticky-labelled WEEKLYBACK1 thru WEEKLYBACK4.  Since I also do a
  1846.          monthly backup, I format these diskettes once a month and save
  1847.          them for a month.  The procedure would let me not do the format
  1848.          step, but would overlay all of the files and destroy last month's
  1849.          backups, anyway.
  1850.  
  1851.               I make a copy of ARC.EXE so that the files may be unARCed at
  1852.          any time.  I know my current versions of ARC and PKARC work
  1853.          together.
  1854.  
  1855. echo off
  1856. cd \
  1857. echo ...
  1858. echo This batch file does not back up ARCs and DBFs
  1859. echo ...
  1860. '
  1861. ' query will only accept what comes after the '@'
  1862. ' it reports location x of what you typed as errorlevel x
  1863. '
  1864. query Do you want to continue? (Y/N) @yYnN
  1865. if errorlevel 3 goto done
  1866. '
  1867. ' use PSEARCH to search the entire hard drive for files which have been
  1868. ' updated (written to) in the last week and make a \path\filename\ext list
  1869. ' of them into PSCMDS.BAT
  1870. '
  1871. ps /a /f /at:u /n:7 /xf:&
  1872. echo stripping excess files
  1873. '
  1874. ' don't keep AUTOTEMP.BAT, PSCMDS.BAT or .ARCs, .DBFs or .OBJs
  1875. ' ***NOTE*** how to strip find's output of "--------"
  1876. '
  1877. find /v "AUTOTEMP.BAT" pscmds.bat | find /v "ARC"| find /v "DBF"| find /v
  1878.          "PS" | find /v ".EXE" |find /v "--------" | find "." >backup7.dat
  1879. echo off
  1880. '
  1881. ' this says "add all files listed in backup7.dat to thisweek.arc"
  1882. '
  1883. rep pkarc a thisweek %%a <backup7.dat
  1884. echo off
  1885. echo ...
  1886. echo Put this week's backup diskette in Drive A
  1887. echo ...
  1888. pause
  1889. '
  1890. ' working on calculating the space requirements of a diskette
  1891. '
  1892. dir backup7.dat
  1893. dir thisweek.arc
  1894. echo off
  1895.  
  1896.  
  1897.  
  1898.  
  1899.          A Hard Disk OS                                                Page 36
  1900.  
  1901.  
  1902.  
  1903.  
  1904. echo ...
  1905. echo Besides that, arc.exe takes 32429 bytes.
  1906. echo ...
  1907. palert a:
  1908. '
  1909. ' query will only accept what comes after the '@'
  1910. ' it reports location x of what you typed as errorlevel x
  1911. '
  1912. query Do you need to format a diskette (Y/N)? @yYnN
  1913. if errorlevel 3 goto noform
  1914. flpyform a: /v
  1915. goto formed
  1916. :noform
  1917. echo ...
  1918. echo Put a formatted diskette in Drive A
  1919. echo ...
  1920. pause
  1921. :formed
  1922. copy \arc.exe a:
  1923. copy backup7.dat a:
  1924. copy thisweek.arc a:
  1925. erase pscmds.bat
  1926. erase backup7.dat
  1927. erase thisweek.arc
  1928. echo ...
  1929. '
  1930. ' (bell) means ^G, which is a PCWRITE command
  1931. '
  1932. echo (bell)All done.  Save the diskette in Drive A
  1933. echo ...
  1934. :done
  1935.  
  1936.  
  1937.  
  1938.  
  1939.          A Hard Disk OS                                                Page 37
  1940.  
  1941.  
  1942.                                 ****MONTHBAK.BAT****
  1943.  
  1944.  
  1945.               This Batch File is run monthly by manual means.  Its purpose
  1946.          is to make an ARCed copy of eveything done in the last 31 days.  I
  1947.          volume-label and sticky-label a diskette ARCBACKmmyy.  I plan to
  1948.          keep six or seven diskettes in a box until the next time I re-
  1949.          format.  I copy the current version of ARC.EXE onto the floppy,
  1950.          too.  This procedure might be improved by using DS212 to make a
  1951.          Batch File to restore the sub-directory tree.
  1952.  
  1953.  
  1954. echo off
  1955. echo ...
  1956. echo This backup will not copy the following files
  1957. echo...
  1958. echo     AUTOTEMP.BAT
  1959. echo            *.MP?
  1960. echo            *.DB?
  1961. echo            *[no extension]
  1962. echo            *.COM
  1963. echo            *.EXE
  1964. echo            *.ARC
  1965. echo            *.LBR
  1966. echo     PS??????.*
  1967. echo...
  1968. '
  1969. ' query will only accept what comes after the '@'
  1970. ' it reports location x of what you typed as errorlevel x
  1971. '
  1972. query Shall we continue (Y/N)? @yYnN
  1973. if errorlevel 3 goto done
  1974. ps /a /f /at:u /n:30 /xf:&
  1975. echo stripping excess files
  1976. find /v "AUTOTEMP.BAT" pscmds.bat | find /v "PS" >backup30.tad
  1977. echo off
  1978. find /v ".COM" backup30.tad | find /v ".EXE" |find /v ".ARC"|find /v
  1979.          ".LBR">backup30.dxt
  1980. echo off
  1981. find /v ".MP" backup30.dxt | find /v ".DB" |find /v "--------"|find
  1982.          ".">backup30.dat
  1983. echo off
  1984. erase pscmds.bat
  1985. erase backup30.tad
  1986. erase backup30.dxt
  1987. pkarc a backup30 backup30.dat
  1988. rep pkarc a backup30 %%a <backup30.dat
  1989. cls
  1990. echo Making a list of the files
  1991. pkarc v backup30 >arcfiles.lst
  1992. pkarc a backup30 arcfiles.lst
  1993. '
  1994. ' query will only accept what comes after the '@'
  1995. ' it reports location x of what you typed as errorlevel x
  1996. '
  1997.  
  1998.  
  1999.  
  2000.  
  2001.          A Hard Disk OS                                                Page 38
  2002.  
  2003.  
  2004.  
  2005.  
  2006. query Do you need to format the diskette (Y/N)? @yYnN
  2007. if errorlevel 3 goto noform
  2008. flpyform a: /v
  2009. goto formed
  2010. :noform
  2011. echo off
  2012. echo ...
  2013. echo Put a formatted diskette in Drive A
  2014. echo ...
  2015. pause
  2016. :formed
  2017. echo off
  2018. cls
  2019. ,
  2020. echo Determining space available
  2021. '
  2022. pkarc v backup30 |find /v "-"
  2023. dir a: /w
  2024. echo off
  2025. echo ...
  2026. echo Besides that, arc.exe takes 32429 bytes.
  2027. echo ...
  2028. '
  2029. ' query will only accept what comes after the '@'
  2030. ' it reports location x of what you typed as errorlevel x
  2031. '
  2032. query Will it fit (Y/N)? @yYnN
  2033. '
  2034. ' we can "bail out" here with all of the ARCing completed, if things are
  2035. ' too big to fit
  2036. '
  2037. if errorlevel 3 goto done
  2038. cls
  2039. echo on
  2040. copy \arc.exe a:
  2041. copy backup30.arc a:
  2042. rep setarch %%a <backup30.dat
  2043. erase backup30.arc
  2044. erase arcfiles.lst
  2045. erase backup30.dat
  2046. :done
  2047.  
  2048.          Copyright(C), 1987 esoteric efficacy corp.    All Rights Reserved
  2049.  
  2050.  
  2051.  
  2052.  
  2053.          A Hard Disk OS                                                Page 39
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.                                      Appendix F
  2061.  
  2062.                                  Sample DS212 Screen
  2063.  
  2064.  
  2065.  
  2066.   c:\                             autotemp.bat  \ drawing .pgm  \ palert  .ord
  2067.    \- archives                    backup7 .dat  \ gpcab216.ltr  \ pallett .asc
  2068.    \- corner                      bootgrey.pcw  \ gpcab216.min  \ psearch .ltr
  2069.    \   \- leadvill                buerg   .ltr  \ greyboot.doc  \ qfonedit.ltr
  2070.    \   \- magazine                comp0886.res  \ hardappf.rpt  \ resum886.res
  2071.    \- db3plus                     comptech.ltr  \ harddisk.&rp  \ sharware.dat
  2072.    \- develop                     cond0886.res  \ harddisk.otl  \ sysengr .ltr
  2073.    \   \- artintel                copywrit.crd  \ harddisk.rpt  \ warmt1ko.doc
  2074.    \   \- assembly                copywrit.ful  \ iconregs.ltr  \ watrc486.ltr
  2075.    \   \- basic                   copywrit.hlf  \ invoice .doc  \ work    .doc
  2076.    \   \- icon                                  \               \
  2077.    \   \- library                               \               \
  2078.    \   \- pascal                                \               \
  2079.    \   \- quickbas                              \               \
  2080.    \- games                                     \               \
  2081.    \   \- monopoly                              \               \
  2082.    \- microill                                  \               \
  2083.    \- multplan                                  \               \
  2084.    \- nutshell                                  \               \
  2085.    \- pcwrite                                   \               \
  2086.  
  2087. Total: 10,592,256/ Disk  63% Full / Files: 30 Used: 221,184            Tagged: 0
  2088. Used:   6,610,944/ Free Core 277k / ----name----  --size--  --date---  time- atr
  2089. Free:   3,981,312/ Help=?  Lev: 1 / autotemp.bat       128  10 Feb 87  11:02
  2090.  
  2091.          Copyright(C), 1987 esoteric efficacy corp.    All Rights Reserved
  2092.