home *** CD-ROM | disk | FTP | other *** search
/ Power Utilities / Power Utilities.iso / utility / pro96 / pfile.doc < prev    next >
Encoding:
Text File  |  1991-11-02  |  21.2 KB  |  509 lines

  1.                                                                           
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                    PFile V3.1
  8.                                     (c)1991
  9.  
  10.                                    Sid Jones
  11.                              1127 Poplar Wood Drive
  12.                              California, MD  20619
  13.                                  (301) 737-0287
  14.  
  15.  
  16.                                                                           
  17.  
  18.             PrintFile was originally written as a programming aid in
  19.          Turbo C 2.0.  In developing a program it was necessary to
  20.          obtain a printout of the source code fairly often.  In order to
  21.          get the long lines to fit on the page without wrapping around
  22.          or being cut off, I had to continually set the printer for
  23.          condensed print.  For the final copy to be included in a
  24.          notebook, a left margin was required also. PFile is intended to
  25.          alleviate all the fuss.
  26.  
  27.          *** To print the document file, set PFile for 60 lines per page. ***
  28.  
  29.             PFile version 3.1 has the following features:
  30.  
  31.              *  Supports three default printer types or any printer the
  32.                 user defines in the printer ID (.PID) file.  Four sample
  33.                 pid files are supplied with the program.
  34.  
  35.              *  Can be run from the command line or from the menu.
  36.                 Everything can be changed from the menu.
  37.  
  38.              *  Line numbered source code.  Can handle multiple line
  39.                 printing from long source lines.
  40.  
  41.              *  Ignores formfeed characters anywhere in line.  If your
  42.                 page lengths don't match up, your'e not stuck with every
  43.                 other page being only a few lines.
  44.  
  45.              *  Optionally prints title at top of each page with current
  46.                 date, filename, file creation/modification date and page
  47.                 numbering with page totals.
  48.  
  49.              *  The first 12 lines are displayed allowing you a glimpse of
  50.                 the file you are printing.
  51.  
  52.              *  Printer ID file to customize the PFile program to any
  53.                 printer. (Printer, Top/Bottom Margin, Tab expansion)
  54.  
  55.              *  Use DOS environment to set path for printer ID files.
  56.  
  57.              *  View the contents of any printable file with out leaving the
  58.                 program.
  59.  
  60.  
  61.                                 BASIC OPERATION
  62.  
  63.          Type PFILE at the DOS prompt to start the program.  The top half
  64.          of the screen shows what the program is currently set up for.  To
  65.          move around the main menu, use the up & down arrow keys or use the
  66.          space bar.  When your selection is highlighted, hit the enter key.
  67.          To back out of any menu without making a choice, hit the ESC key.
  68.  
  69.                PRINT FILE    - Use this after you have loaded a file and
  70.                                wish to send it to the printer using the
  71.                                printer displayed next to PRN:.
  72.  
  73.                LOAD NEW FILE - This will call up a listing of the current
  74.                                directory.  The directory can be changed by
  75.                                moving the cursor to a sub-directory (all
  76.                                capitals) or to the parent directory (..).
  77.                                By doing this you can traverse the disk. To
  78.                                look at a different disk, hit F2, <ALT>-D,
  79.                                or <CTRL>-D. This will display a list of the
  80.                                different disks that are available.  Other
  81.                                keys available are:  PGUP & PGDN moves the
  82.                                directory 20 choices up or down.  HOME or
  83.                                LEFT arrow move to the beginnig of the list.
  84.                                END or RIGHT arrow move to the end of the
  85.                                list.
  86.  
  87.                OPTIONS       - This will display the options menu.  Move
  88.                                the cursor to the option you would like to
  89.                                change and hit enter.
  90.  
  91.                     PRN:             - Shows a list of PID files that are
  92.                                        available. The same three paths are
  93.                                        searched just like for pfile.pid
  94.                                        (See Printer ID File below.)
  95.  
  96.                     CHARS PER INCH   - Toggles through choices (10, 12,
  97.                                        17). The printer must be set up to
  98.                                        use these.
  99.  
  100.                     LINE NUMBERING   - Toggles line numbers on the output.
  101.                                        (On/Off).  This option uses 7 spaces.
  102.  
  103.                     TITLE PRINTING   - Toggles title printing (On/Off).
  104.                                        This option uses 3 lines.
  105.  
  106.                     LINES PER INCH   - Toggles through choices (6, 7, 8).
  107.                                        The choice of 7 is actually 6.6.
  108.                                        This was mainly for the HP LaserJet
  109.                                        II which only has a printable page
  110.                                        of 10 inches or 60 lines.  This
  111.                                        gives the LaserJet the ability to
  112.                                        print 66 line pages which the
  113.                                        standard.
  114.  
  115.                     TOP MARGIN       - Gives a menu to choose from (0 to 6
  116.                                        lines)
  117.  
  118.                     BOTTOM MARGIN    - Gives a menu to choose from (0 to 6
  119.                                        lines)
  120.  
  121.                     TAB              - This sets the tab expansion.
  122.                                        Generally a tab is 8 characters
  123.                                        wide. However, when writing code,
  124.                                        people have their own preferences.
  125.                                        (0 to 12 spaces)
  126.  
  127.                     BORDER CHARACTER - This applies only when title
  128.                                        printing is on.  This sets the
  129.                                        character that is printed across the
  130.                                        page to separate the title from the
  131.                                        body of the document.  Default
  132.                                        choices with their decimal
  133.                                        equivalents in (): ─ (196), ═ (205),
  134.                                        ▀ (223), - (45), = (61), * (42), ~
  135.                                        (126), . (46).  Or you can put
  136.                                        anything you want there. See PID
  137.                                        file below.
  138.  
  139.                View File     - This will let you view the whole file on the
  140.                                screen, 13 lines at a time.  Hitting a key
  141.                                will display the next 13 lines.  Hitting ESC
  142.                                will return to the main menu.  To choose a
  143.                                file or drive, see 'Load New File' option.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.                                      COMMAND LINE USEAGE
  150.  
  151.  
  152.                      PFile [-options] [filename.ext]
  153.                      PFile -h  --  Displays this help screen.
  154.                      PFile -r  --  Displays registration information.
  155.  
  156.  
  157.                                       Options
  158.  
  159.          m[-]        --  Starts PFile in menu mode. (m- for command line mode)
  160.          p[e|i|h]    --  Selects default printer. (Epson, Ibm, Hp)
  161.          l[6|7|8]    --  Selects lines per inch.
  162.          c[10|12|17] --  Selects characters per inch.
  163.          n[-]        --  Sets line numbering on. (n- turns numbering off)
  164.          t[-]        --  Sets title printing on. (t- sets title printing off)
  165.  
  166.  
  167.              The default printer option is used when there is no default
  168.          printer id file present (pfile.pid), otherwise that parameter is
  169.          ignored.  The default switch settings are:  PFILE -ml6c17nt. This
  170.          is equivalent to running PFILE without any optional switches.  It
  171.          will run in the menu/interactive mode.  The printout will be set
  172.          for 6 lines per inch (lpi), 17 characters per inch (cpi), line
  173.          numbering and a title at the top of the page.  From the main menu,
  174.          any of the options may be set.  Any options set from the command
  175.          line will override those set in the id file.
  176.  
  177.  
  178.  
  179.  
  180.  
  181.              PFile can be setup from the command line.  By using the
  182.          appropriate command line switches, PFile can be configured to
  183.          your liking upon loading of the program.  This saves you the
  184.          trouble of entering the options menu for the same choices time
  185.          after time.  This includes loading the source file.  See
  186.          example batch file number one.  
  187.  
  188.              If you already know which file you wish to print, the options
  189.          you wish to use, and the printer is ready, you can use the command
  190.          line option to bypass the interactive session.  See example
  191.          batch file number two.
  192.  
  193.                 Ex 1             PBAT1.BAT:   PFILE -n-l8ph %1
  194.                 Useage:          pbat1 source.c
  195.  
  196.                 Ex 2             PBAT2.BAT:   PFILE  -l8c12m- %1
  197.                 Useage:          pbat2 source.c
  198.  
  199.              The first batch file calls PFile with the file "source.c"
  200.          already loaded.  PFile will also have the following options set:
  201.          line numbering off, 8 lines per inch, and ready to use the HP
  202.          LaserJet II--if the file "pfile.pid" was not found.  Of course,
  203.          once PFile is loaded the options can be changed.
  204.  
  205.  
  206.              The second batch file doesn't use the interactive menu at all.
  207.          PFile will set the printer for 8 lines/inch, 12 characters per
  208.          inch and will proceed with printing the file.  With this option
  209.          you don't get a chance to change the options or to set your
  210.          printer to the top of the page.
  211.  
  212.              
  213.  
  214.                                PRINTER ID FILE (PID)
  215.  
  216.              There are several printer ID (PID) files supplied with this
  217.          program.  When PFile is run, it checks to see if "pfile.pid", the
  218.          default printer id file is in the current directory.  If not, the
  219.          DOS environment is checked for the variable "PFILE=path".  If it
  220.          is found, that directory is checked for the default file.  Then
  221.          the root directory of the current drive is checked.  If the file
  222.          still isn't found the program uses an internal set of defaults.
  223.          The printer of which can be specified through the command line
  224.          switches. To use the DOS environment, in your autoexec place the
  225.          following command:
  226.                             SET PFILE=path
  227.  
  228.              Where path is the path (including drive) where you want your
  229.          PID files to be found.  This allows you to call PFile from other
  230.          directories or even disks while still using the same PID files.
  231.  
  232.                If the program doesn't seem to
  233.          be working on your system, check the PFILE.PID file.  If you don't
  234.          have one, one can be built with any text editor and the following
  235.          commands.
  236.  
  237.  
  238.  
  239.  
  240.  
  241.              Command identifiers must be entered exactly as they appear.
  242.          They must begin with a period in the first column and end with a
  243.          colon.  All non printable characters must be entered in the format
  244.          "\DDD" where DDD is the decimal ASCII code of the character. Three
  245.          digits must be used.  Comments can be interspersed throughout this
  246.          file, however, nothing but the printer codes can be on the command
  247.          lines.
  248.  
  249.            TMARGIN    - The size of the top margin.
  250.  
  251.            BMARGIN    - The size of the bottom margin.
  252.  
  253.            BORDER     - A single character that is repeated across the page
  254.                           forming a line between the header and the file.
  255.  
  256.            PRINTER    - Names the printer the codes are set for. Must be no
  257.                         longer than 15 characters.
  258.  
  259.            INITIALIZE - Printer initialization code.     (45 characters max)
  260.  
  261.            6LPI       - Code for 6 lines per inch.       (45 characters max)
  262.  
  263.            8LPI       - Code for 8 lines per inch.       (45 characters max)
  264.  
  265.            66LPI      - Code for 6.6 lines per inch.  (Listed as 7 on
  266.                         the command line options) On Hp, this gives an
  267.                         effective page length equal to other printers.
  268.                         Very helpful when printing out doc files spaced
  269.                         for normal 66 lines per page.    (45 characters max)
  270.  
  271.            10CPI      - Code for 10 characters per inch. (45 characters max)
  272.  
  273.            12CPI      - Code for 12 characters per inch. (45 characters max)
  274.  
  275.            17CPI      - Code for 17 characters per inch. (45 characters max)
  276.  
  277.  
  278.              Due to all printers not having the exact same choices for
  279.          character spacing, the next three commands are required even
  280.          though they seem redundant.  They basically indicate the page
  281.          size.  The PICA_COL is the exact characters per inch multiplied
  282.          by the page width in inches (normally 8). For example, the
  283.          compressed print for the HP is 16.66 cpi not 17.  Therefore the
  284.          number of columns per line is different then the standard 17
  285.          cpi.
  286.  
  287.            PICA_COL   - # of columns in 10CPI.  (normally 80)
  288.  
  289.            ELITE_COL  - # of columns in 12CPI.  (normally 96)
  290.  
  291.            COMP_COL   - # of columns in 17CPI.  (normally 136)
  292.  
  293.            TAB        - Width of tabs on printout. (normally 4 or 8)
  294.  
  295.            PAGESIZE   - Length of page. (normally 11 -- 10 for HP)
  296.  
  297.  
  298.  
  299.          ***  If there is a problem with the file header not fitting on one
  300.               line. The problem lies in one of the column commands.
  301.  
  302.          PFile History
  303.  
  304.              1.0  12/89  Original program written.
  305.  
  306.              2.0   5/90  Menu support added.
  307.                          Ignore formfeeds in first column added.
  308.                          Configuration files added.
  309.                          Configureable printer drivers.
  310.                          Displays the first 12 lines of loaded file.
  311.  
  312.              2.0a 12/90  Streamlined Code.
  313.  
  314.              3.0   1/91  New expanded printer id file.
  315.                          Simplified printer option in PID file.  You
  316.                            only have to set up one printer-yours.
  317.                          Choose from as many printers as you want to set up
  318.                            from the menu.
  319.                          Easier to use command line options.
  320.                          Expand tabs on printout.
  321.                          File directory sorted by extension.  With sub
  322.                            directories grouped at the top.  (All .c
  323.                            files grouped together)
  324.                          New menu choices.
  325.                          Ignore formfeeds anywhere in line.
  326.                          More choices for lpi and cpi.
  327.                          Use of the DOS environment variables.
  328.  
  329.              3.1  11/91  Fixed problem of retrieving first file from disk.
  330.                          PFile now accounts for long file lines to give the
  331.                            correct page total in the print header.
  332.                          Added file viewing capability
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.                                     SHAREWARE
  362.  
  363.              This version of PFile is NOT public domain or free software,
  364.          but is being distributed as "shareware".
  365.  
  366.              Non-registered users of this software are granted a limited
  367.          license to make an evaluation copy for trial use on a private,
  368.          non-commercial basis, for the express purpose of determining
  369.          whether PFile is suitable for their needs.  At the end of this
  370.          trial period, you should either register your copy or discontinue
  371.          using PFile.
  372.  
  373.              What is "ShareWare"?  If you use this program, then you should
  374.          pay for your copy.  That way shareware authors will be able to
  375.          provide you support and updates for current software as well as
  376.          develop new low cost software. Plus, registered users receive
  377.          update notices, technical support, and a warm fuzzy feeling that
  378.          they've helped the system.  Registration entitles you to use the
  379.          program on any and all computers available to you, with the
  380.          following restriction: If other people have access to this program
  381.          or may use it, then you should purchase a site license.  See the
  382.          following section for information about site licensing or quantity
  383.          discounts.
  384.  
  385.  
  386.              All users are granted a limited license to copy PFile only for
  387.          trial use and subject to the above limitations. This license does
  388.          NOT include distribution or copying of this software package:
  389.  
  390.                 1. In connection with any other product or service.
  391.                 2. For general use within a company or institution.
  392.                 3. For distribution in modified form; i.e., the file
  393.                    containing this license information MUST be included,
  394.                    along with the full PFile documentation.
  395.  
  396.              Operators of electronic bulletin board systems (Sysops) are
  397.          encouraged to post PFile for downloading by their users, as
  398.          long as the above conditions are met.
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.                            ORDERING INFORMATION
  422.  
  423.              A PFile registration licenses you to use the product on a
  424.          regular basis. Registration includes notification of updates
  425.          and telephone support.
  426.  
  427.  
  428.          Remit to:                 Sid Jones
  429.                              1127 Poplar Wood Drive
  430.                              California, MD  20619
  431.  
  432.                        *** PFile version 3.1, Nov 1991 ***
  433.  
  434.          I offer special prices/discounts on quantity orders,
  435.          multiple-user licenses, and dealer pricing
  436.  
  437.          Please send me (check desired items):
  438.  
  439.          ____ PFile on disk  w/o registration ... @ $3.50 ea  $ ______
  440.               Format: [_] 3½     [_] 5¼
  441.  
  442.          ____ PFile Registration ............... @ $10.00 ea  $ ______
  443.  
  444.          ____ PFile Registration W/Disk ........ @ $12.50 ea  $ ______
  445.               Format: [_] 3½     [_] 5¼
  446.                                                     Subtotal  $ ______
  447.  
  448.                MD Residents please add Sales Tax ....... @ 5% $ ______
  449.  
  450.                                                         Total $ ______
  451.  
  452.          [__] Please send me word when the next update or other new
  453.               software products are available.
  454.  
  455.          Name: ________________________________________________________
  456.  
  457.          Company (ONLY if company address):____________________________
  458.  
  459.          Address: _____________________________________________________
  460.  
  461.                 : _____________________________________________________
  462.  
  463.                 : _____________________________________________________
  464.  
  465.          Day Phone: _________________________ Eve: ____________________
  466.  
  467.  
  468.          ------------------------ User comments -----------------------
  469.  
  470.          I acquired PFile (serial number _________) from:
  471.                [ ] - Friend                    [ ] - Software product
  472.                [ ] - Computer Club             [ ] - Computer Store
  473.                [ ] - Data Base Service  Name__________________________
  474.                [ ] - BBS   Name_______________ #(____) ____-_____
  475.                [ ] - Other - Please Specify __________________________
  476.  
  477.          If you have any ideas or comments that would make PFile a better
  478.          program, then please let us know.
  479.  
  480.          Comments and/or suggestions:
  481.                                   DISCLAIMER
  482.  
  483.             Use of this program acknowledges this disclaimer of
  484.          warranty: "This program is supplied as is.  Casual Software
  485.          disclaims all warranties, expressed or implied, including,
  486.          without limitation, the warranties of merchantability and of
  487.          fitness of this program for any purpose.  Casual Software
  488.          assumes no liability for damages direct or consequential, which
  489.          may result from the use of this program."
  490.  
  491.  
  492.                   CORPORATE SITE LICENSES AND QUANTITY PURCHASES
  493.  
  494.             All corporate, business, government or other commercial
  495.          users of PFile must be registered.  We offer quantity discounts
  496.          as well as site licensing.
  497.  
  498.             Corporate site licensing agreements allow duplication and
  499.          distribution of copies within the licensed institution.
  500.          Duplication of multiple copies is not allowed except through
  501.          execution of a licensing agreement.  Site license fees are
  502.          based upon estimated number of users.
  503.  
  504.             Note that with a site license, only one copy of the program
  505.          will be sent.  You will be responsible for distributing
  506.          additional copies.
  507.  
  508.          Please call or write for more information.
  509.