home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / sysutl / ph_utils.arc / SCANF.DOC < prev    next >
Encoding:
Text File  |  1989-07-11  |  20.4 KB  |  638 lines

  1.  
  2.  
  3.                   SCANF
  4.  
  5.  
  6.  
  7.                   File Scanning Utility
  8.  
  9.  
  10.  
  11.                   Version  1.00
  12.                   Released 05-20-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.    ScanF...................................................... 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.       Application Note........................................ 1.7
  73.       Version History......................................... 2.0
  74.  
  75.    Support.................................................... 9.0
  76.       Problem Resolution...................................... 9.1
  77.       Before Reporting........................................ 9.2
  78.       Reporting a problem..................................... 9.3
  79.       Custom Modifications.................................... 9.4
  80.       Correspondence.......................................... 9.5
  81.  
  82.    Product Catalog........................................... 10.0
  83.  
  84.  
  85.  
  86.  
  87. _________________________________________________________________
  88.  
  89. 0.1.0          Shareware
  90. _________________________________________________________________
  91.  
  92.  
  93.  
  94.  
  95. 0.1.1   The SHAREWARE Concept
  96. _____________________________
  97.  
  98.    "Shareware" is a software distribution method which enables
  99.    the potential user to obtain software at very low initial
  100.    cost, for evaluation on a trial basis.
  101.  
  102.    You can evaluate the software in your own environment, on your
  103.    own machine, with the programs and data that you normally use.
  104.    You're not required to make payment and become a registered
  105.    user unless the software meets your needs.
  106.  
  107.    Another benefit of Shareware is lower pricing.  By minimizing
  108.    the marketing and advertising expenses associated with more
  109.    traditional software distribution methods, Shareware products
  110.    can be priced lower.  You don't pay for what you don't need or
  111.    use.
  112.  
  113.    You are encouraged to share the evaluation version of this
  114.    software with others, so long as you follow the limitations
  115.    set forth in the LICENSE TERMS section below.
  116.  
  117.  
  118.  
  119.  
  120. 0.1.2   LICENSE TERMS
  121. _____________________
  122.  
  123.    This product and its documentation are copyrighted and owned
  124.    solely by the author, who reserves all rights to any benefits
  125.    derived from it.  It is distinctly separate from, and should
  126.    not be confused with, those categories of software known as
  127.    "public domain" or "freeware."
  128.  
  129.    You are granted without charge a limited license to use the
  130.    evaluation version of this software on a trial basis, for
  131.    purposes of deciding whether to continue using (and therefore
  132.    whether to register) the product, and to transmit this
  133.    evaluation version to associates by copying on diskette or
  134.    uploading to electronic bulletin board services, so long as
  135.    the following CONDITIONS are met:
  136.  
  137.       (a) The program and its documentation file must be
  138.           distributed together.
  139.  
  140.       (b) The program and its documentation must not be
  141.           altered in any way.  If you wish to include
  142.           notes for other evaluators, please add them in
  143.           a separate file and include that file along
  144.           with the program and documentation files.
  145.  
  146.  
  147.  
  148.  
  149. 0.1.3   REGISTRATION
  150. ____________________
  151.  
  152.       When you send in the registration form and fee, you'll
  153.       receive by return mail a diskette containing the latest
  154.       REGISTERED version of the program and documentation.
  155.  
  156.  
  157.    BENEFITS OF REGISTRATION
  158.  
  159.       The registered version WILL NOT include the Evaluation Menu
  160.       front-end or the forms-printing section of this version.
  161.       Thus it will be more convenient to use, from either the DOS
  162.       prompt or from batch files.  It will also be about 16K
  163.       bytes smaller, for more efficient disk storage and faster
  164.       loading.
  165.  
  166.       The registered version WILL include any new functions
  167.       or enhancements made to date.
  168.  
  169.       You will receive notification of future updates and
  170.       new products.
  171.  
  172.       You will be able to upgrade to newer versions at a
  173.       reduced cost.
  174.  
  175.  
  176.    REGISTRATION FORM
  177.  
  178.       The registration form and a pre-addressed mailing cover
  179.       can be printed from the "Forms Printing" selection of
  180.       the Evaluation menu, discussed in section 0.2.2 below.
  181.  
  182.  
  183.    FEES
  184.  
  185.       The single-quantity registration fee is displayed on the
  186.       initial Evaluation Menu screen.  Higher quantities are
  187.       discussed below.
  188.  
  189.  
  190.    QUANTITY DISCOUNTS
  191.  
  192.       Each registered copy of this software will be licensed for
  193.       operation at only one location (on only one machine) at any
  194.       one time.  If this software will be in use at more than one
  195.       location at the same time, the appropriate number of
  196.       registrations must be made.
  197.  
  198.       Multiple-quantity registration fees are displayed in the
  199.       "QUANTITY DISCOUNT" section of the Evaluation menu.
  200.  
  201.       You can take advantage of quantity discounts by ordering
  202.       multiple registrations of one program or single
  203.       registrations of several different programs at the same
  204.       time.  You also save on shipping and handling charges
  205.       by registering several products together.
  206.  
  207.  
  208.    GROUP REGISTRATIONS
  209.  
  210.       You can also get quantity discounts by combining orders with
  211.       associates:
  212.  
  213.          (1)   Complete a separate registration form for each person.
  214.                   Each person's name, address and programs to be
  215.                   registered are needed for support and update
  216.                   notification purposes.
  217.  
  218.          (2)   Include only one standard shipping and handling charge.
  219.                   Cross out the "Shipping & handling" amounts on
  220.                   all but one registration form; the combined
  221.                   order will be sent to the name and address on
  222.                   that form.
  223.  
  224.          (3)   Send all the forms together in one envelope or mailing
  225.                   cover, with a single check or money order.
  226.  
  227.  
  228.  
  229.  
  230. _________________________________________________________________
  231.  
  232. 0.2.0          Evaluation
  233. _________________________________________________________________
  234.  
  235.  
  236.  
  237.  
  238. 0.2.1   EVALUATION VERSION
  239. __________________________
  240.  
  241.    This software contains the complete and fully functional version
  242.    of the program, the latest available at the time of this release.
  243.  
  244.    The program itself is identical to the REGISTERED version.
  245.    An Evaluation Menu and forms-printing section were added
  246.    to ensure that:
  247.  
  248.       (a)   Registration information and forms will not
  249.             become separated from the program file.
  250.  
  251.       (b)   Users who might be unfamiliar with the process
  252.             of displaying a file's contents on the screen or
  253.             printer will have no difficulty learning about,
  254.             evaluating or registering this product.
  255.  
  256.  
  257.  
  258.  
  259. 0.2.2   EVALUATION MENU
  260. _______________________
  261.  
  262.    The program is invoked from the DOS prompt by typing its name
  263.    and pressing the RETURN or ENTER key.
  264.  
  265.  
  266.    The initial screen displays the warranty section and some
  267.    information about the program:
  268.  
  269.       Program name,
  270.       Version number,
  271.       Release date,
  272.       Single-quantity registration fee.
  273.  
  274.  
  275.    It next displays the Shareware Product EVALUATION MENU.
  276.    A single key press will select the following functions
  277.    from the menu:
  278.       _________________________________________
  279.  
  280.       ESC - EXIT to DOS without evaluating this program
  281.  
  282.        R  - READ the documentation (THIS file)
  283.  
  284.        x  - EVALUATE this program
  285.  
  286.        Q  - QUANTITY Discount information
  287.  
  288.        F  - FORMS printing menu - registration & mailer
  289.       _________________________________________
  290.  
  291.  
  292.    When you press "R" to READ the documentation, this file will
  293.    be shown one screen at a time.  The display pauses whenever the
  294.    screen becomes full, and prompts...
  295.  
  296.                      <downArrow> or Esc
  297.  
  298.    The <downArrow> character is similar to the "MORE" prompt in
  299.    other DOS utilities.  It indicates that more is available.
  300.    Press ESCape to exit back to the Evaluation Menu, or any normal
  301.    typing key to continue (space bar is a convenient key to use).
  302.  
  303.  
  304.  
  305.  
  306. 0.2.3   VIRUS PREVENTION
  307. ________________________
  308.  
  309.    If you'd like to evaluate this software but you're not sure
  310.    where it's been, you can get a copy straight from the source
  311.    for a $4.00 charge to cover the cost of the diskette, shipping
  312.    and handling.  If your address is outside the U.S. and Canada,
  313.    add an additional $3.00 (total $7.00, in U.S. funds).
  314.  
  315.    Include your mailing address and the name of the program.
  316.    By return mail you'll receive the latest evaluation version
  317.    of that program and as many others as will fit on a 5.25
  318.    inch diskette.
  319.  
  320.  
  321.  
  322.  
  323. ______________________________________________________________
  324.  
  325.                SCANF
  326. 1.0
  327.                File Scanning Utility
  328. ______________________________________________________________
  329.  
  330.  
  331.  
  332.  
  333. 1.1   INTRODUCTION
  334. __________________
  335.  
  336.    You'd like to quickly scan your executable files for copyrights
  337.    and other readable text, but the normal file reading utilities
  338.    are designed for text files; they show you EVERYTHING, which
  339.    seems to include a high percentage of unintelligible gibberish.
  340.    With a large file, you'll have to strain your eyes over many
  341.    screens to find any human-readable text strings.
  342.  
  343.    The DOS DEBUG utility brings different problems.  It lowers the
  344.    noise level by changing the "special" characters into dots, but
  345.    crams the ASCII text into a 16-character column on the right
  346.    side of the screen.  You still have to manually scan over many
  347.    screens of data to find all the text.
  348.  
  349.  
  350.  
  351.  
  352. 1.2   EXPLANATION
  353. _________________
  354.  
  355.    ScanF is designed for easy viewing of the printable ASCII text
  356.    characters within executable files, while filtering out control
  357.    (ASCII values below 32 decimal) and extended characters (ASCII
  358.    values above 127 decimal).
  359.  
  360.    Although meant for checking the printable contents of .EXE or
  361.    .COM files, ScanF will read any file type.
  362.  
  363.    Strings found are displayed down the left side of the screen, one
  364.    string per line.  Spreading out the strings in this manner eases
  365.    the task of picking the real information out of the nonsense text.
  366.  
  367.    ScanF pauses at the bottom of each screen, to allow you to
  368.    continue scanning or to escape back to DOS.  The down-arrow
  369.    prompt indicates that more follows; press ESCAPE to terminate,
  370.    or any OTHER key to continue.
  371.  
  372.  
  373.  
  374.  
  375. 1.3     SYSTEM REQUIREMENTS
  376. ___________________________
  377.  
  378.    PC, XT, AT or compatible.
  379.    DOS version 2.1 or later.
  380.    64K free memory.
  381.  
  382.  
  383.  
  384.  
  385. 1.3.1   INSTALLING
  386. __________________
  387.  
  388.    The program can be run from diskette or from hard disk.
  389.    No installation is necessary, other than copying the files
  390.    to a drive and directory of your choosing.
  391.  
  392.  
  393.  
  394.  
  395. 1.4   HELP
  396. __________
  397.  
  398.    Can't remember the command line syntax?
  399.    Issue the program's name without any parameters; it
  400.    will display a help screen, then return to the DOS prompt.
  401.  
  402.  
  403.  
  404.  
  405. 1.5   SYNTAX
  406. ____________
  407.  
  408.  
  409.                           Minimum string length for display
  410.                           /
  411.       ScanF [filespec] [/n]
  412.  
  413.  
  414.          Where...
  415.  
  416.          [/n] is an optional minimum string length.
  417.             Allowable values are 1 through 20.
  418.             Default is 3.
  419.  
  420.             All strings found with this length or longer will be
  421.             displayed.  All shorter strings will be ignored.
  422.  
  423.          [filespec] is the string needed to reference a file;
  424.             can also be shown as [d:][path][filename.ext].
  425.  
  426.             The minimum filespec needed is filename.ext. If the
  427.             file is in another directory and/or on another drive,
  428.             the drive name and/or path name must also be given.
  429.  
  430.             The complete filespec for a file named ThisFile.Doc
  431.             residing in drive A: in a subdirectory named ThisSub
  432.             is
  433.                      A:\ThisSub\ThisFile.Doc
  434.  
  435.          For further information on filespecs, see your DOS manual.
  436.  
  437.  
  438.  
  439.  
  440. 1.6   EXAMPLES
  441. ______________
  442.  
  443.       ScanF C:\Command.Com          (displays all text strings
  444.                                      3 characters or longer)
  445.  
  446.  
  447.       ScanF C:\Util\ScanF.Exe /6    (displays all text strings
  448.                                      6 characters or longer)
  449.  
  450.  
  451.  
  452.  
  453. 1.6.1   OPERATING SCREEN
  454. ________________________
  455.  
  456.    The operating screen appears whenever "ScanF" is issued from
  457.    the DOS prompt with a file specification.
  458.  
  459.    If the specified file is found, and if it contains any text
  460.    strings that meet the minimum size requirement, they will be
  461.    displayed on the screen.  If the specified file is not found,
  462.    an error message will be displayed before returning to the DOS
  463.    prompt.
  464.  
  465.    Scanning can be terminated at any point with the ESCape key.
  466.  
  467.    ScanF pauses at the bottom of each screen, to allow you to
  468.    continue scanning or to escape back to DOS.  The down-arrow
  469.    prompt indicates that more follows; press ESCape to terminate,
  470.    or any OTHER key to continue.
  471.  
  472.  
  473.  
  474.  
  475. 1.7   APPLICATION NOTE
  476. ______________________
  477.  
  478.    If you're scanning a large file using SCANF's default mode of
  479.    three characters minimum string length, you may have to page
  480.    through many screens of 3-character gibberish.  You can avoid
  481.    this by rerunning SCANF with a higher /n number on the command
  482.    line, unless you need to check for the shorter strings.
  483.  
  484.  
  485.  
  486.  
  487. 2.0   VERSION HISTORY
  488. _____________________
  489.  
  490.    1.00  Initial release.
  491.  
  492.  
  493.  
  494.  
  495. _________________________________________________________________
  496.  
  497. 9.0            Support
  498. _________________________________________________________________
  499.  
  500.  
  501.  
  502.  
  503. 9.1   PROBLEM RESOLUTION
  504. ________________________
  505.  
  506.    Please document and report any anomaly in program operation,
  507.    whether it's a genuine "bug" or just some feature of the
  508.    program that particularly "bugs" you.
  509.  
  510.    If you're the first person to document and report a problem
  511.    that we agree needs attention, you'll receive a free upgrade
  512.    with the correction when it's been made.  If you're a
  513.    registered user, you'll get the upgraded registered version;
  514.    if you haven't yet registered, you'll get the upgraded
  515.    evaluation version.
  516.  
  517.  
  518.  
  519.  
  520. 9.2   BEFORE REPORTING
  521. ______________________
  522.  
  523.    Things to try prior to reporting a problem:
  524.  
  525.       1 - Reread the documentation to make sure you understand
  526.           what we thought we understood when we wrote it.
  527.  
  528.       2 - If the system reports "Bad command or file name" when
  529.           you attempt to run the program, its executable file
  530.           (or at least the file name you specified) was not found.
  531.  
  532.           First, make sure no typos or misspellings have crept
  533.           into your command line; next, try changing your PATH
  534.           setting, or make the drive & directory where the program
  535.           resides the "current" drive & directory.
  536.  
  537.       3 - If the program is being run from a batch file, try
  538.           deleting lines previous to the line that actually
  539.           invokes the program, to see if some prior activity
  540.           is causing the problem.
  541.  
  542.       4 - If you have any memory-resident or "TSR" utilities
  543.           installed (pop-up calculators/note pads, keyboard
  544.           enhancements, etc.), try removing them from memory
  545.           and running the program again to see if the problem
  546.           reoccurs.
  547.  
  548.  
  549.  
  550.  
  551. 9.3   REPORTING A PROBLEM
  552. _________________________
  553.  
  554.    If the problem persists, please document it as completely and
  555.    accurately as possible; we have to be able to duplicate it
  556.    before we can begin to resolve it.
  557.  
  558.    Include at least the following:
  559.  
  560.       1 - Version of DOS you are using.
  561.       2 - Machine type, drives, memory, etc.
  562.       3 - Programs executed prior to the problem.
  563.       4 - Problem program's name and version number.
  564.       5 - Where and how you obtained the problem program.
  565.       6 - Address and/or phone number where you can be contacted.
  566.       7 - Anything you can think of that might relate to the problem;
  567.           for example, listings of your AUTOEXEC.BAT and CONFIG.SYS
  568.           files, or any batch files used to run the program.
  569.       8 - Any relevant printouts.
  570.  
  571.  
  572.    NOTE: If you're a registered user, you'll find the utility
  573.          UserResp.Exe on the distribution diskette; it can be used
  574.          to print a pre-addressed mailer and a problem report.
  575.  
  576.          If you have not yet registered, send problem reports to the
  577.          address below (or print the pre-addressed mailer from the
  578.          Evaluation Menu).
  579.  
  580.  
  581.  
  582.  
  583. 9.4   CUSTOM MODIFICATIONS
  584. __________________________
  585.  
  586.    If you need custom modifications to this software for your
  587.    particular application, please write to the below address
  588.    with complete details of your requirements.
  589.  
  590.  
  591.  
  592.  
  593. 9.5   CORRESPONDENCE
  594. ____________________
  595.  
  596.    We welcome any comments or suggestions you might have
  597.    concerning improvements and future enhancements to this
  598.    product.  Send all correspondence to:
  599.  
  600.              Phil Herron
  601.              P.O. Box 1288
  602.              Battle Ground, Washington  USA  98604
  603.  
  604.  
  605.  
  606.  
  607. _________________________________________________________________
  608.  
  609. 10.0           Product Catalog
  610. _________________________________________________________________
  611.  
  612.  
  613.    This section contains a list of products available or near
  614.    completion as of this release date; it will be updated
  615.    whenever new products are added.
  616.  
  617.  
  618.  
  619.       ChkD     - Drive  Total/Free/Used report by value & percent
  620.       ChkM     - Memory Total/Free/Used report by value & percent
  621.       CleanOut - Selective file deletion, with confirmation
  622.       CleanTxt - WordStar to Ascii convert, ctrl char strip, tab expand
  623.       CleanZ   - Ctrl-Z End Of File char strip or replace
  624.       FindF    - Find File(s) in any directory of current drive
  625.       Gen      - Generate files for testing printer, storage or timing
  626.       KeySet   - CapsLock-NumLock-ScrollLock-PrtSc key setup
  627.       PrinTest - Parallel Printer Test & Status reporting
  628.       Qscn     - Convert text to executable file for Quick Screen display.
  629.       ScanF    - Scan File   for text strings
  630.       ScanM    - Scan Memory for text strings
  631.       Split    - File splitter
  632.       StoRm    - STorage RooM needed for files on any disk/any DOS ver.
  633.  
  634.  _______________________________________________________________
  635. |                                                               |
  636. |        COPYRIGHT 1989 Phil Herron.  ALL RIGHTS RESERVED.      |
  637. |_______________________________________________________________|
  638.