home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / util2 / ph-utils.lzh / SPLIT.DOC < prev    next >
Text File  |  1989-07-11  |  24KB  |  722 lines

  1.  
  2.  
  3.                   SPLIT
  4.  
  5.  
  6.  
  7.                   File Splitter Utility
  8.  
  9.  
  10.  
  11.                   Version  1.00
  12.                   Released 05-24-89
  13.  
  14.  
  15.  
  16.  
  17.                   Herron Software
  18.                   P.O. Box 1288
  19.                   Battle Ground, Washington  98604
  20.  
  21.  
  22.  
  23.  
  24.          COPYRIGHT 1988, 1989 Phil Herron.  ALL RIGHTS RESERVED.
  25.  
  26.  
  27.                   DISCLAIMER OF WARRANTY
  28.             __________________________________________
  29.  
  30.  
  31.             THIS PRODUCT IS LICENSED AS IS AND WITHOUT
  32.             WARRANTY OF ANY KIND.  THE AUTHOR MAKES NO
  33.             EXPRESS OR IMPLIED WARRANTIES WITH REGARD
  34.             TO THIS PRODUCT, INCLUDING BUT NOT LIMITED
  35.             TO MERCHANTABILITY OR FITNESS FOR ANY
  36.             PURPOSE.  IN NO EVENT SHALL THE AUTHOR BE
  37.             LIABLE FOR LOSS OF PROFIT OR ANY OTHER
  38.             COMMERCIAL DAMAGE ARISING FROM EITHER THE
  39.             USE OF OR THE INABILITY TO USE THIS PRODUCT.
  40.  
  41.  
  42.             This product should be thoroughly evaluated
  43.             using backed up or noncritical data and files.
  44.  
  45.  
  46.  
  47.  
  48.  
  49.    _________________________________________________________________
  50.  
  51.    Table of Contents                                         Section
  52.    _________________________________________________________________
  53.  
  54.    Shareware.................................................. 0.1.0
  55.       What it is.............................................. 0.1.1
  56.       License Terms........................................... 0.1.2
  57.       Registration............................................ 0.1.3
  58.  
  59.    Evaluation................................................. 0.2.0
  60.       Evaluation Version...................................... 0.2.1
  61.       Evaluation Menu......................................... 0.2.2
  62.       Virus Prevention........................................ 0.2.3
  63.  
  64.    Split...................................................... 1.0
  65.       Introduction............................................ 1.1
  66.       Explanation............................................. 1.2
  67.       System Requirements..................................... 1.3
  68.          Installing........................................... 1.3.1
  69.       Help.................................................... 1.4
  70.       Syntax.................................................. 1.5
  71.       Examples................................................ 1.6
  72.       Applications............................................ 1.7
  73.       Error Messages.......................................... 1.8
  74.       Future Enhancements..................................... 1.9
  75.       Version History......................................... 2.0
  76.  
  77.    Support.................................................... 9.0
  78.       Problem Resolution...................................... 9.1
  79.       Before Reporting........................................ 9.2
  80.       Reporting a problem..................................... 9.3
  81.       Custom Modifications.................................... 9.4
  82.       Correspondence.......................................... 9.5
  83.  
  84.    Product Catalog........................................... 10.0
  85.  
  86.  
  87.  
  88.  
  89. _________________________________________________________________
  90.  
  91. 0.1.0          Shareware
  92. _________________________________________________________________
  93.  
  94.  
  95.  
  96.  
  97. 0.1.1   The SHAREWARE Concept
  98. _____________________________
  99.  
  100.    "Shareware" is a software distribution method which enables
  101.    the potential user to obtain software at very low initial
  102.    cost, for evaluation on a trial basis.
  103.  
  104.    You can evaluate the software in your own environment, on your
  105.    own machine, with the programs and data that you normally use.
  106.    You're not required to make payment and become a registered
  107.    user unless the software meets your needs.
  108.  
  109.    Another benefit of Shareware is lower pricing.  By minimizing
  110.    the marketing and advertising expenses associated with more
  111.    traditional software distribution methods, Shareware products
  112.    can be priced lower.  You don't pay for what you don't need or
  113.    use.
  114.  
  115.    You are encouraged to share the evaluation version of this
  116.    software with others, so long as you follow the limitations
  117.    set forth in the LICENSE TERMS section below.
  118.  
  119.  
  120.  
  121.  
  122. 0.1.2   LICENSE TERMS
  123. _____________________
  124.  
  125.    This product and its documentation are copyrighted and owned
  126.    solely by the author, who reserves all rights to any benefits
  127.    derived from it.  It is distinctly separate from, and should
  128.    not be confused with, those categories of software known as
  129.    "public domain" or "freeware."
  130.  
  131.    You are granted without charge a limited license to use the
  132.    evaluation version of this software on a trial basis, for
  133.    purposes of deciding whether to continue using (and therefore
  134.    whether to register) the product, and to transmit this
  135.    evaluation version to associates by copying on diskette or
  136.    uploading to electronic bulletin board services, so long as
  137.    the following CONDITIONS are met:
  138.  
  139.       (a) The program and its documentation file must be
  140.           distributed together.
  141.  
  142.       (b) The program and its documentation must not be
  143.           altered in any way.  If you wish to include
  144.           notes for other evaluators, please add them in
  145.           a separate file and include that file along
  146.           with the program and documentation files.
  147.  
  148.  
  149.  
  150.  
  151. 0.1.3   REGISTRATION
  152. ____________________
  153.  
  154.       When you send in the registration form and fee, you'll
  155.       receive by return mail a diskette containing the latest
  156.       REGISTERED version of the program and documentation.
  157.  
  158.  
  159.    BENEFITS OF REGISTRATION
  160.  
  161.       The registered version WILL NOT include the Evaluation Menu
  162.       front-end or the forms-printing section of this version.
  163.       Thus it will be more convenient to use, from either the DOS
  164.       prompt or from batch files.  It will also be about 16K
  165.       bytes smaller, for more efficient disk storage and faster
  166.       loading.
  167.  
  168.       The registered version WILL include any new functions
  169.       or enhancements made to date.
  170.  
  171.       You will receive notification of future updates and
  172.       new products.
  173.  
  174.       You will be able to upgrade to newer versions at a
  175.       reduced cost.
  176.  
  177.  
  178.    REGISTRATION FORM
  179.  
  180.       The registration form and a pre-addressed mailing cover
  181.       can be printed from the "Forms Printing" selection of
  182.       the Evaluation menu, discussed in section 0.2.2 below.
  183.  
  184.  
  185.    FEES
  186.  
  187.       The single-quantity registration fee is displayed on the
  188.       initial Evaluation Menu screen.  Higher quantities are
  189.       discussed below.
  190.  
  191.  
  192.    QUANTITY DISCOUNTS
  193.  
  194.       Each registered copy of this software will be licensed for
  195.       operation at only one location (on only one machine) at any
  196.       one time.  If this software will be in use at more than one
  197.       location at the same time, the appropriate number of
  198.       registrations must be made.
  199.  
  200.       Multiple-quantity registration fees are displayed in the
  201.       "QUANTITY DISCOUNT" section of the Evaluation menu.
  202.  
  203.       You can take advantage of quantity discounts by ordering
  204.       multiple registrations of one program or single
  205.       registrations of several different programs at the same
  206.       time.  You also save on shipping and handling charges
  207.       by registering several products together.
  208.  
  209.  
  210.    GROUP REGISTRATIONS
  211.  
  212.       You can also get quantity discounts by combining orders with
  213.       associates:
  214.  
  215.          (1)   Complete a separate registration form for each person.
  216.                   Each person's name, address and programs to be
  217.                   registered are needed for support and update
  218.                   notification purposes.
  219.  
  220.          (2)   Include only one standard shipping and handling charge.
  221.                   Cross out the "Shipping & handling" amounts on
  222.                   all but one registration form; the combined
  223.                   order will be sent to the name and address on
  224.                   that form.
  225.  
  226.          (3)   Send all the forms together in one envelope or mailing
  227.                   cover, with a single check or money order.
  228.  
  229.  
  230.  
  231.  
  232. _________________________________________________________________
  233.  
  234. 0.2.0          Evaluation
  235. _________________________________________________________________
  236.  
  237.  
  238.  
  239.  
  240. 0.2.1   EVALUATION VERSION
  241. __________________________
  242.  
  243.    This software contains the complete and fully functional version
  244.    of the program, the latest available at the time of this release.
  245.  
  246.    The program itself is identical to the REGISTERED version.
  247.    An Evaluation Menu and forms-printing section were added
  248.    to ensure that:
  249.  
  250.       (a)   Registration information and forms will not
  251.             become separated from the program file.
  252.  
  253.       (b)   Users who might be unfamiliar with the process
  254.             of displaying a file's contents on the screen or
  255.             printer will have no difficulty learning about,
  256.             evaluating or registering this product.
  257.  
  258.  
  259.  
  260.  
  261. 0.2.2   EVALUATION MENU
  262. _______________________
  263.  
  264.    The program is invoked from the DOS prompt by typing its name
  265.    and pressing the RETURN or ENTER key.
  266.  
  267.  
  268.    The initial screen displays the warranty section and some
  269.    information about the program:
  270.  
  271.       Program name,
  272.       Version number,
  273.       Release date,
  274.       Single-quantity registration fee.
  275.  
  276.  
  277.    It next displays the Shareware Product EVALUATION MENU.
  278.    A single key press will select the following functions
  279.    from the menu:
  280.       _________________________________________
  281.  
  282.       ESC - EXIT to DOS without evaluating this program
  283.  
  284.        R  - READ the documentation (THIS file)
  285.  
  286.        x  - EVALUATE this program
  287.  
  288.        Q  - QUANTITY Discount information
  289.  
  290.        F  - FORMS printing menu - registration & mailer
  291.       _________________________________________
  292.  
  293.  
  294.    When you press "R" to READ the documentation, this file will
  295.    be shown one screen at a time.  The display pauses whenever the
  296.    screen becomes full, and prompts...
  297.  
  298.                      <downArrow> or Esc
  299.  
  300.    The <downArrow> character is similar to the "MORE" prompt in
  301.    other DOS utilities.  It indicates that more is available.
  302.    Press ESCape to exit back to the Evaluation Menu, or any normal
  303.    typing key to continue (space bar is a convenient key to use).
  304.  
  305.  
  306.  
  307.  
  308. 0.2.3   VIRUS PREVENTION
  309. ________________________
  310.  
  311.    If you'd like to evaluate this software but you're not sure
  312.    where it's been, you can get a copy straight from the source
  313.    for a $4.00 charge to cover the cost of the diskette, shipping
  314.    and handling.  If your address is outside the U.S. and Canada,
  315.    add an additional $3.00 (total $7.00, in U.S. funds).
  316.  
  317.    Include your mailing address and the name of the program.
  318.    By return mail you'll receive the latest evaluation version
  319.    of that program and as many others as will fit on a 5.25
  320.    inch diskette.
  321.  
  322.  
  323.  
  324.  
  325. ______________________________________________________________
  326.  
  327.                SPLIT
  328. 1.0
  329.                File Splitter Utility
  330. ______________________________________________________________
  331.  
  332.  
  333.  
  334.  
  335. 1.1   INTRODUCTION
  336. __________________
  337.  
  338.    You have a large text file to be edited (or just to be read).
  339.    Some word processors/text editors will handle any file size, as
  340.    long as the file can fit on a disk.  Others handle only files
  341.    that will fit into free memory.  Still others are specifically
  342.    designed for a certain maximum file size.
  343.  
  344.    Once you get the file into your editor, you can edit it down
  345.    into smaller files.  But it's so big that it won't all load
  346.    into the editor.
  347.  
  348.    Or maybe it's too big to fit on a single diskette, but you need
  349.    to save it in an easily readable form (thus precluding the use
  350.    of the DOS BACKUP/RESTORE utilities).
  351.  
  352.  
  353.    SPLIT it.
  354.  
  355.  
  356.  
  357.  
  358. 1.2   EXPLANATION
  359. _________________
  360.  
  361.    SPLIT reads a specified file and writes the contents into
  362.    several smaller files.  Currently, it splits a file into
  363.    two others, each half the size of the specified file.
  364.    The original file is preserved.
  365.  
  366.    SPLIT's primary purpose is to process text files, but it
  367.    will handle any file type that can be specified on the
  368.    command line.
  369.  
  370.    The division is made at the 50% boundary without regard
  371.    to contents.  It may occur within a word, sentence or
  372.    paragraph.
  373.  
  374.  
  375.    SPLIT will refuse to process files containing zero bytes.
  376.    It also refuses to accept input files with extensions of
  377.    ".01" or ".02", since these extensions are used for the
  378.    output files.  For further explanation, see the ERROR
  379.    MESSAGE section.
  380.  
  381.  
  382.  
  383.  
  384. 1.3   SYSTEM REQUIREMENTS
  385. _________________________
  386.  
  387.    PC, XT, AT or compatible.
  388.    DOS version 2.1 or later.
  389.    80K free memory.
  390.  
  391.  
  392.  
  393.  
  394. 1.3.1   INSTALLING
  395. __________________
  396.  
  397.    The program can be run from diskette or from hard disk.
  398.    No installation is necessary, other than copying the files
  399.    to a drive and directory of your choosing.
  400.  
  401.  
  402.  
  403.  
  404. 1.4   HELP
  405. __________
  406.  
  407.    Can't remember the command line syntax?
  408.    Issue the program's name without any parameters; it
  409.    will display a help screen, then return to the DOS prompt.
  410.  
  411.  
  412.  
  413.  
  414. 1.5   SYNTAX
  415. ____________
  416.  
  417.  
  418.       SPLIT [filespec]
  419.  
  420.  
  421.          Where [filespec] is the string needed to reference a file;
  422.          can also be shown as [d:][path][filename.ext].
  423.  
  424.          The minimum filespec needed is filename.ext.  If the file
  425.          is in another directory and/or on another drive, the
  426.          drive name and/or path name must also be given.
  427.  
  428.          The complete filespec for a file named ThisFile.Doc
  429.          residing in drive A: in a subdirectory named ThisSub is
  430.  
  431.                A:\ThisSub\ThisFile.Doc
  432.  
  433.          For further information on filespecs, see your DOS manual.
  434.  
  435.  
  436.  
  437.  
  438. 1.6   EXAMPLES
  439. ______________
  440.  
  441.       SPLIT Myfile.Doc
  442.  
  443.          Reads the file named Myfile.Doc, if it is found in the
  444.          current drive and directory (otherwise displays an error
  445.          message and returns to DOS).  Creates two new files,
  446.          Myfile.01 and Myfile.02, in the current drive and
  447.          subdirectory.  Each of the new files is half the size
  448.          of the original.  Myfile.Doc is preserved.
  449.  
  450.  
  451.       SPLIT A:\SomeDir\YourFile.Doc
  452.  
  453.          Reads the file named YourFile.Doc, if found in the
  454.          specified subdirectory of the specified drive.
  455.          Creates two new files, YourFile.01 and YourFile.02,
  456.          in the current drive and directory.  Again, each is
  457.          half the size of the original.
  458.  
  459.  
  460.  
  461.  
  462. 1.7   APPLICATIONS
  463. __________________
  464.  
  465.  
  466.    Borland's SideKick version 1.5 includes a pop up notepad that
  467.    will handle up to 45,000 characters (45Kbytes), or 50Kb if you
  468.    omit the calendar function.  The notepads in SideKick's newer
  469.    incarnation, SideKick PLUS, will handle up to 54Kb each.
  470.  
  471.    These and other memory-resident notepad utilities are extremely
  472.    useful, since you can use them from within other programs.
  473.  
  474.    Example:
  475.  
  476.       You have a complex payroll (or general ledger or
  477.       spreadsheet) program.  When you first learned how to
  478.       use it, you ferreted out the important notes and
  479.       examples in the manual and typed them into a file you
  480.       named "PRnotes.Doc" (or GLnotes.Doc or SSnotes.Doc).
  481.  
  482.       Now, whenever you're in the midst of running payroll
  483.       and need some information, you can pop up your memory-
  484.       resident notepad, load PRnotes.Doc, and use the search
  485.       function to look for particular keywords.  Much faster
  486.       than manually looking through a book or returning to
  487.       DOS to read your note file.  You can also import text
  488.       or sample data from the program screens into the
  489.       note file for future reference.
  490.  
  491.  
  492.       The time will come, however, when you've added so many
  493.       notes and imported so many screens that PRnotes.Doc
  494.       will no longer load into the pop up notepad.
  495.  
  496.       Instead of suddenly having to do without your online
  497.       notes and sample data, you can SPLIT the file:
  498.  
  499.                SPLIT PRnotes.doc
  500.  
  501.       creates two new files half the size of the original:
  502.  
  503.                PRnotes.01
  504.                PRnotes.02
  505.  
  506.       You could leave the names of the new files as they
  507.       are, or rename them to
  508.  
  509.                PRnote1.Doc
  510.                PRnote2.Doc
  511.  
  512.       Now you're back in business.  If the files later grow
  513.       too large, split them again.
  514.  
  515.  
  516.  
  517.    If you frequent electronic bulletin board systems (BBS's), you
  518.    can build some very large text files on disk.  Using "nonstop"
  519.    mode, hundreds of messages can be downloaded in a short amount
  520.    of time.  With your communications software's "capture" or
  521.    "logfile" feature enabled, the messages will all be recorded in
  522.    a file on disk.  This not only saves phone charges, but allows
  523.    more users access to the BBS.
  524.  
  525.    When you go offline and try to edit this sometimes huge capture
  526.    file, your editor may choke on it.  SPLIT it into digestible
  527.    sections.
  528.  
  529.  
  530.  
  531.  
  532. 1.8   ERROR MESSAGES
  533. ____________________
  534.  
  535.       Insufficient disk space to continue.
  536.  
  537.       <filename.ext> - input file not found.
  538.  
  539.       <filename.ext> - size is 0 bytes; cannot split.
  540.  
  541.       <filename.ext> - extension reserved for output - rename.
  542.  
  543.          If an input file extension of ".01" were allowed, and
  544.          a valid file named "MyFile.01" were entered on the
  545.          command line, that file would quickly disappear!
  546.          After some initial validation checking, SPLIT creates
  547.          two new output files, using the filename of the input
  548.          file and extensions .01 and .02. Creation of the new
  549.          output file "MyFile.01" would overwrite the input
  550.          file; SPLIT would then hang, trying to read from a
  551.          zero-length file.
  552.  
  553.  
  554.       Cannot open input file <filename.ext>
  555.  
  556.       Cannot create output file <filename.nn>
  557.  
  558.  
  559.  
  560.  
  561. 1.9   FUTURE ENHANCEMENTS
  562. _________________________
  563.  
  564.    The current version of SPLIT divides an input file into only
  565.    two parts.  A future version will allow you to specify the
  566.    number of parts.
  567.  
  568.  
  569.  
  570.  
  571. 2.0   VERSION HISTORY
  572. _____________________
  573.  
  574.    1.00  Initial release.
  575.  
  576.  
  577.  
  578.  
  579. _________________________________________________________________
  580.  
  581. 9.0            Support
  582. _________________________________________________________________
  583.  
  584.  
  585.  
  586.  
  587. 9.1   PROBLEM RESOLUTION
  588. ________________________
  589.  
  590.    Please document and report any anomaly in program operation,
  591.    whether it's a genuine "bug" or just some feature of the
  592.    program that particularly "bugs" you.
  593.  
  594.    If you're the first person to document and report a problem
  595.    that we agree needs attention, you'll receive a free upgrade
  596.    with the correction when it's been made.  If you're a
  597.    registered user, you'll get the upgraded registered version;
  598.    if you haven't yet registered, you'll get the upgraded
  599.    evaluation version.
  600.  
  601.  
  602.  
  603.  
  604. 9.2   BEFORE REPORTING
  605. ______________________
  606.  
  607.    Things to try prior to reporting a problem:
  608.  
  609.       1 - Reread the documentation to make sure you understand
  610.           what we thought we understood when we wrote it.
  611.  
  612.       2 - If the system reports "Bad command or file name" when
  613.           you attempt to run the program, its executable file
  614.           (or at least the file name you specified) was not found.
  615.  
  616.           First, make sure no typos or misspellings have crept
  617.           into your command line; next, try changing your PATH
  618.           setting, or make the drive & directory where the program
  619.           resides the "current" drive & directory.
  620.  
  621.       3 - If the program is being run from a batch file, try
  622.           deleting lines previous to the line that actually
  623.           invokes the program, to see if some prior activity
  624.           is causing the problem.
  625.  
  626.       4 - If you have any memory-resident or "TSR" utilities
  627.           installed (pop-up calculators/note pads, keyboard
  628.           enhancements, etc.), try removing them from memory
  629.           and running the program again to see if the problem
  630.           reoccurs.
  631.  
  632.  
  633.  
  634.  
  635. 9.3   REPORTING A PROBLEM
  636. _________________________
  637.  
  638.    If the problem persists, please document it as completely and
  639.    accurately as possible; we have to be able to duplicate it
  640.    before we can begin to resolve it.
  641.  
  642.    Include at least the following:
  643.  
  644.       1 - Version of DOS you are using.
  645.       2 - Machine type, drives, memory, etc.
  646.       3 - Programs executed prior to the problem.
  647.       4 - Problem program's name and version number.
  648.       5 - Where and how you obtained the problem program.
  649.       6 - Address and/or phone number where you can be contacted.
  650.       7 - Anything you can think of that might relate to the problem;
  651.           for example, listings of your AUTOEXEC.BAT and CONFIG.SYS
  652.           files, or any batch files used to run the program.
  653.       8 - Any relevant printouts.
  654.  
  655.  
  656.    NOTE: If you're a registered user, you'll find the utility
  657.          UserResp.Exe on the distribution diskette; it can be used
  658.          to print a pre-addressed mailer and a problem report.
  659.  
  660.          If you have not yet registered, send problem reports to the
  661.          address below (or print the pre-addressed mailer from the
  662.          Evaluation Menu).
  663.  
  664.  
  665.  
  666.  
  667. 9.4   CUSTOM MODIFICATIONS
  668. __________________________
  669.  
  670.    If you need custom modifications to this software for your
  671.    particular application, please write to the below address
  672.    with complete details of your requirements.
  673.  
  674.  
  675.  
  676.  
  677. 9.5   CORRESPONDENCE
  678. ____________________
  679.  
  680.    We welcome any comments or suggestions you might have
  681.    concerning improvements and future enhancements to this
  682.    product.  Send all correspondence to:
  683.  
  684.              Phil Herron
  685.              P.O. Box 1288
  686.              Battle Ground, Washington  USA  98604
  687.  
  688.  
  689.  
  690.  
  691. _________________________________________________________________
  692.  
  693. 10.0           Product Catalog
  694. _________________________________________________________________
  695.  
  696.  
  697.    This section contains a list of products available or near
  698.    completion as of this release date; it will be updated
  699.    whenever new products are added.
  700.  
  701.  
  702.  
  703.       ChkD     - Drive  Total/Free/Used report by value & percent
  704.       ChkM     - Memory Total/Free/Used report by value & percent
  705.       CleanOut - Selective file deletion, with confirmation
  706.       CleanTxt - WordStar to Ascii convert, ctrl char strip, tab expand
  707.       CleanZ   - Ctrl-Z End Of File char strip or replace
  708.       FindF    - Find File(s) in any directory of current drive
  709.       Gen      - Generate files for testing printer, storage or timing
  710.       KeySet   - CapsLock-NumLock-ScrollLock-PrtSc key setup
  711.       PrinTest - Parallel Printer Test & Status reporting
  712.       Qscn     - Convert text to executable file for Quick Screen display.
  713.       ScanF    - Scan File   for text strings
  714.       ScanM    - Scan Memory for text strings
  715.       Split    - File splitter
  716.       StoRm    - STorage RooM needed for files on any disk/any DOS ver.
  717.  
  718.  _______________________________________________________________
  719. |                                                               |
  720. |        COPYRIGHT 1989 Phil Herron.  ALL RIGHTS RESERVED.      |
  721. |_______________________________________________________________|
  722.