home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / HAM / PCFU199H.ZIP / PCFU.DOC < prev    next >
Text File  |  1994-01-23  |  69KB  |  1,430 lines

  1.                      
  2.                      
  3.                      
  4.                      
  5.                                                    
  6.  
  7.  
  8.  
  9.              ┌──────────┐ ┌─────────┐ ┌─────────┐ ┌────┐ ┌────┐
  10.              └┐  ┌───┐  │ │  ┌────┐ │ └┐  ┌───┐ │ └┐  ┌┘ └┐  ┌┘
  11.               │  │   │  │ │  │    └─┘  │  │   └─┘  │  │   │  │
  12.               │  └───┘  │ │  │         │  └──┐     │  │   │  │
  13.               │  ┌──────┘ │  │         │  ┌──┘     │  │   │  │
  14.               │  │        │  │    ┌─┐  │  │        │  │   │  │
  15.              ┌┘  └┐       │  └────┘ │ ┌┘  └┐       │  └───┘  │
  16.              └────┘       └─────────┘ └────┘       └─────────┘
  17.  
  18.                        
  19.                        
  20.                        
  21.                        The Planet Connect File Utility
  22.  
  23.  
  24.  
  25.  
  26.                                 Version 2.00
  27.  
  28.               
  29.  
  30.                                 (rough draft)
  31.  
  32.  
  33.               
  34.               
  35.               Copyright (c) 1994 by Genesis Information Service
  36.  
  37.               
  38.                            Written by: John Morano
  39.  
  40.                         Documentation by: Adam Morano
  41.         
  42.                             1:391/1180 @ FidoNet                 
  43.                            8:391/1180 @ FamilyNet           
  44.                           adam@cybernet.cse.fau.edu
  45.                     john.morano@f1180.n391.z1.fidonet.org           
  46.              
  47.  
  48.  
  49.                                                            
  50.  
  51.  
  52.                                                                   
  53.                                                                 Page 1
  54.                                                                     
  55.  
  56.   1     Introduction . . . . . . . . . . . . . . . . . . . . . .     3
  57.           
  58.           1.1   What is PCFU . . . . . . . . . . . . . . . . . .     3
  59.           1.2   Features . . . . . . . . . . . . . . . . . . . .     3
  60.           1.3   System Hardware and Software . . . . . . . . . .     3
  61.           1.4   License and Disclaimer . . . . . . . . . . . . .     4
  62.           1.5   My ramblings . . . . . . . . . . . . . . . . . .     4
  63.   
  64.   2     Planet Connect Technology  . . . . . . . . . . . . . . .     5
  65.           
  66.           2.1   Network structure  . . . . . . . . . . . . . . .     5
  67.           2.2   File transfer and recieve structure. . . . . . .     6
  68.           2.3   A word about ACONFIG.SKY . . . . . . . . . . . .     7
  69.  
  70.   3     Program Setup and Overview . . . . . . . . . . . . . . .     8
  71.           
  72.           3.1   How PCFU works . . . . . . . . . . . . . . . . .     9
  73.           3.2   Setting the PCFU enviroment. . . . . . . . . . .     10
  74.                 3.2.1   PCFU=. . . . . . . . . . . . . . . . . .     10
  75.                 3.2.2   DIRCMD=. . . . . . . . . . . . . . . . .     11
  76.           3.3   PCFU <> Dos relationship . . . . . . . . . . . .     11
  77.           3.4   Easy Setup . . . . . . . . . . . . . . . . . . .     11
  78.           3.5   PCFU.CFG . . . . . . . . . . . . . . . . . . . .     12
  79.           3.6   The PCFU Files . . . . . . . . . . . . . . . . .     14
  80.                 3.6.1   README.1ST . . . . . . . . . . . . . . .     14
  81.                 3.6.2   PCFU.DOC . . . . . . . . . . . . . . . .     14
  82.                 3.6.3   PCFU.NEW . . . . . . . . . . . . . . . .     14 
  83.                 3.6.4   PCFU.EXE . . . . . . . . . . . . . . . .     14 
  84.                 3.6.5   PCFU.CFG . . . . . . . . . . . . . . . .     14  
  85.                 3.6.6   PCFU.IDX . . . . . . . . . . . . . . . .     14 
  86.                 3.6.7   PCFU.LOG . . . . . . . . . . . . . . . .     14
  87.                 3.6.8   PMOV.LOG . . . . . . . . . . . . . . . .     14
  88.                 3.6.9   UPLDMSTR.LOG . . . . . . . . . . . . . .     14
  89.                 3.6.10  PTIC.MSG . . . . . . . . . . . . . . . .     14
  90.                 3.6.11  RECEIVED.NOT . . . . . . . . . . . . . .     14
  91.                 3.6.12  FREQTHEM.NOW . . . . . . . . . . . . . .     14
  92.                 3.6.13  RUNBBS.NOW . . . . . . . . . . . . . . .     14  
  93.    
  94.   4     Program Commands an Switches . . . . . . . . . . . . . .     15
  95.  
  96.           4.1   Command Line Structure . . . . . . . . . . . . .     15
  97.           4.2   DUP command. . . . . . . . . . . . . . . . . . .     15     
  98.                 4.2.1   X option for DUP . . . . . . . . . . . .     16 
  99.           4.3   MOV command. . . . . . . . . . . . . . . . . . .     16    
  100.                 4.3.1   X option for MOV . . . . . . . . . . . .     17 
  101.           4.4   -c switch. . (config). . . . . . . . . . . . . .     17
  102.           4.5   -o switch. . (originate) . . . . . . . . . . . .     18
  103.           4.6   -t switch. . (terminate) . . . . . . . . . . . .     18
  104.           4.7   -s switch. . (safe). . . . . . . . . . . . . . .     19
  105.           4.8   -x switch. . (index) . . . . . . . . . . . . . .     19
  106.           4.9   -f switch. . (filespec). . . . . . . . . . . . .     20
  107.                 4.9.1   -fTIC switch (special filespec). . . . .     20
  108.           4.10  -l switch. . (log) . . . . . . . . . . . . . . .     21
  109.           4.11  -m switch. . (movlog). . . . . . . . . . . . . .     21
  110.           4.12  -p switch. . (post). . . . . . . . . . . . . . .     21
  111.           4.13  -k switch. . (keep). . . . . . . . . . . . . . .     22
  112.           4.14  -r switch. . (reprocess) . . . . . . . . . . . .     22
  113.           4.14  -v switch. . (verify). . . . . . . . . . . . . .     22
  114.           
  115.  
  116.                                                                 Page 2
  117.  
  118.  
  119.   5     Networking and Multitasking. . . . . . . . . . . . . . .     23
  120.  
  121.           5.1   Running PCFU in a network. . . . . . . . . . . .     23
  122.           5.2   Running PCFU under Desqview. . . . . . . . . . .     23
  123.           5.3   Running PCFU with other multitaskers . . . . . .     23
  124.           5.4   File sharing . . . . . . . . . . . . . . . . . .     23
  125.           5.5   Moving vs Copying Files. . . . . . . . . . . . .     23
  126.  
  127.   6     Epilog . . . . . . . . . . . . . . . . . . . . . . . . .     23
  128.                                      
  129.           6.1   Credits. . . . . . . . . . . . . . . . . . . . .     23
  130.           6.2   Thanks to. . . . . . . . . . . . . . . . . . . .     23
  131.           6.3   Technical notes. . . . . . . . . . . . . . . . .     23                                   
  132.           6.4   Technical support. . . . . . . . . . . . . . . .     24
  133.           6.5   Suggesting option for future versions. . . . . .     24
  134.           
  135.  
  136.           Note !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  137.  
  138.           PCFU is "NOT" an upgrade tp PCUTILS, there is no conversion
  139.           program to run, and it won't self install. You are going to 
  140.           have to take the time to sit down and read the documentation,
  141.           install the EXE files, set up a new config file, and also
  142.           make a few changes to your existing batch files to get it to
  143.           work properly.
  144.           My appoligies in advance for this inconvienence but I could
  145.           not do what I wanted with PCFU and make it 100% compatable
  146.           with the older PCUTILS.
  147.  
  148.  
  149.  
  150.  
  151.  
  152.                                                                 Page 3
  153.  
  154.  1.     Introduction:
  155.  
  156.         If you are reading this file I hope you are a memeber of the 
  157.         Planet Connect Satellite Data Service. Why? Because this file
  158.         was written for that service, and will most likely be of very
  159.         limited value to you if you are not part of PC. So don't waste
  160.         your time by reading any more of this boring doc file and go
  161.         do something constructive like playing Mortal Combat. :-)
  162.  
  163.  1.1    What is PCFU:
  164.  
  165.         Planet Connect File Utility, PCFU for short, is an automated
  166.         batch type file generator,driver and shell that has options to 
  167.         keep logs of what it has done so you can verify that the operation
  168.         went the way you wanted it to go. In a single command line you
  169.         will be able to automate file manipulation processes that would
  170.         take hundreds of lines in a batch file to duplicate, saving
  171.         you time and effort maintaining your BBS.
  172.         
  173.  1.2    Features:
  174.  
  175.         The following are the primary features built into PSCU, that
  176.         will help you do file manipulations under the PC enviroment. 
  177.         I think you will find that with a little bit of experimenting
  178.         that you will be able to do exactly what you want to do with
  179.         any files now and in the future that could be sent over the
  180.         satellite system.
  181.  
  182.         1. Delete duplicate files in the inbound satellite directory
  183.            or any directory of your choice.
  184.         2. Move inbound files to the holding directory and/or tossing
  185.            directory or any other directory of your choice.
  186.         3. Move any files in any directory to any other directory in 
  187.            date and time order so as to proccess them in and orderly
  188.            and less congested enviroment.
  189.         4. Keep detailed logs of everything that PCFU has done so that
  190.            acutate tracking and debuging of the system can be accomplished. 
  191.         5. Pre-proccess TIC type files in matched pairs and optionally   
  192.            create a message suitable for posting on your BBS with the file 
  193.            information and file disription.
  194.         6. Self maintaining logs and indexes to keep then at a resonable 
  195.            size, you no longer need to manually delete oversized logs
  196.            by hand.
  197.         7. Keep track of all files that were not received,isolate files
  198.            that are received but do not show up on the listing of files
  199.            that should have been received on that day.
  200.         8. Create a a flag file to let your BBS software know that all files
  201.            on the files of the day list have been received.
  202.         
  203.  1.3    System Hardware and Software:
  204.  
  205.         Any 8088,286,386,486 type machine with 256K of free memory,
  206.         and having a minimum of 10 file handlers available for PCFU.
  207.         The system needs to be working within a DOS 'based' enviroment, 
  208.         this includes MS DOS 3.3 or greater, PC DOS 3.0 or greater, 
  209.         4DOS, a DOS window within WINDOWS, or a Desqview window set to
  210.         the above memory requirments.
  211.         And of course it would help if you were running the Planet
  212.         Connects Satellite equipment. :-) 
  213.  
  214.                                                                 Page 4
  215.  
  216.  1.4    License and Disclaimer
  217.  
  218.         You are granted a limited license to use and copy this software
  219.         within the terms and in accordance with that license as follows.
  220.         
  221.         The software enclosed in this archive is copyrighted meterial,
  222.         you may use this software for as long as you like provided you
  223.         do not violate the copyright.
  224.  
  225.         You may not make any changes or modifications to the software
  226.         including but not limited to decompiling, disassembling, or
  227.         otherwise reverse engineer the software. You may not rent or
  228.         lease it to others. You may not modify the documentation in
  229.         any way except for the addition of personal notes within said
  230.         documentation as long as those notes do not become a part of
  231.         the documentation distibuted with this software.
  232.  
  233.         Information within this documentation is subject to change without
  234.         notice as is the content and funtionality of the program PCFU.
  235.  
  236.         Genesis Information Services and the authors of PCFU and the 
  237.         documentation make no warranty of any kind,expressed or implied,
  238.         with regard to the funtionality of the software or documentation,
  239.         and shall not be liable in any event for incidental or 
  240.         consequential damages in connection with, or arising from, 
  241.         the use or inability to use said material.
  242.         
  243.         Your use of this software and documentation beyond the casual
  244.         reading of the documentation for informational purposes will
  245.         constitute a legal and binding contract provisioned by the 
  246.         above License and Disclaimer wording.
  247.  
  248.         PCFU and it's documentation can be freely distributed under the 
  249.         SHAREWARE concept with a registration fee of $1.00 (one dollar)
  250.  
  251.  1.5    My ramblings:
  252.  
  253.         Well you just went through the legal crud, sorry about but my
  254.         legal beagle said it had to be there. Now a few of you are 
  255.         going to ask why the stupid $1 registration charge, well here's
  256.         the method to that madness. With PCUTILS I asked for a netmail
  257.         message if you used the program. Well I got two (2) I'm using 
  258.         it messages and five (5) gripe messages that it didn't work. 
  259.         (4 of the 5 sent another message saying it wasn't PCUTILS that 
  260.         was causing the problem) Well anyway I guess only 7 systems
  261.         on the PC network are using it :-). I've got about 1000 hours
  262.         of coding time in PCFU and I sure would like to hear from you
  263.         guys and gals, so legally your obligated to put a buck in an
  264.         envelope and send it to me if your using PCFU. I got a buck
  265.         in my pocket that says I won't be flooded with bucks in the 
  266.         mail. < big grin >
  267.         
  268.         Well enough of me, lets get on with the show, and have fun.
  269.  
  270.         John.....
  271.  
  272.                                                                 Page 5
  273.  
  274.  2.    Planet Connect Technology
  275.  
  276.        What can I say besides, 'Sliced Bread' and 'Up Yours Ma Bell.'
  277.        
  278.        With the addition of a relitively inexpensive modem like receiver
  279.        and satelite dish to your BBS, you will connect your system to a
  280.        file distribution system that is on the threshold of todays ever
  281.        expanding personal information distribution network.
  282.        Planet Connect is a data delivery service capable of sending you 
  283.        very large amounts of information in a relitively short time frame,
  284.        Although the PTCCMAIN program supplied by PC does a perfect job of
  285.        receiving those files and storing them on your disk drive, you
  286.        still have a very large task at hand in trying to sort out that 
  287.        information and put it into a form that your normal mail tossers
  288.        and file handlers can work with, without choking on the massive 
  289.        volume that is recieved and without getting the FidoGods and 
  290.        InternetGods mad at you for sending massive duplicate message into
  291.        the system due to the multipal repeat tranmissions PC does each
  292.        day to guarentee the receipt of those file.
  293.        That is where PCFU steps in and does a lot of that grunt work 
  294.        for you.
  295.  
  296.  2.1   Network structure
  297.        
  298.        The basic configuration of information flow within the Planet
  299.        Connect network can be seen in a simple form as follows:
  300.  
  301.        Inbound:
  302.        
  303.        Land Line > Planet Connect Mail System > Satellite Uplink > 
  304.        Satellite > Satellite Downlink (your receiver) > PCFU > 
  305.        Your Tosser > Your BBS 
  306.  
  307.        Outbound:
  308.        
  309.        Your BBS > Your Scanner > Land Line > Planet Connect Mail System
  310.  
  311.        So as you can see it is not much different then the normal land 
  312.        line base information transfer system of:
  313.  
  314.        Inbound:
  315.  
  316.        Land Line > Modem (your receiver) > Your Tosser > Your BBS 
  317.        
  318.        Outbound:
  319.        
  320.        Your BBS > Your Scanner > Land Line > Hub Mail System
  321.  
  322.        Just a few more piece of equipment to pass through and a few extra
  323.        programs to handle the information flow, and get it to the point
  324.        where your normal BBS software thinks it has just come in over a
  325.        land line based modem instead of a satellite receiver. PCFU was
  326.        designed to be that middle man that takes the work out of the 
  327.        conversion.
  328.  
  329.                                                                 Page 6
  330.  
  331.  2.2   File transfer and recieve structure
  332.        
  333.        We will go into more detail later but for now in it's most simple
  334.        form this is what your system will have to do to get all those
  335.        files that Planet Connect is sending your way.
  336.        When PTCCMAIN exits on a signal from the satellite link receiver
  337.        it sets an errorlevel of 100. It also sets an errorlevel of 0 if
  338.        you manually exit the program using the exit function.
  339.        What the error level of 100 means to you and PCFU is that the
  340.        satellite data delivery system has come to the end of a cycle of
  341.        files it is sending out. By using an errorlevel traping line in
  342.        the batch file your running PTCCMAIN from it is a simple matter to
  343.        detect this exit and redirect your batch file execution to any
  344.        point in the batch sequence you would like. The following is a 
  345.        simple example of a batch file showing what I mean.
  346.        
  347.        Note: The commands used for PCFU in the following batch file 
  348.              force a dup check & pre tic proccess to be done creating
  349.              a message for posting, and moves all 0000FFFF.* files to
  350.              the default tossing directory.
  351.  
  352.        :START
  353.                 PTCCMAIN
  354.                 IF ERRORLEVEL 100 GOTO CYCLE
  355.                 IF ERRORLEVEL 0  GOTO END
  356.        :CYCLE
  357.                 PCFU DUP 
  358.                 PCFU MOV 
  359.                 PCFU MOV -fTIC -p
  360.                 GECHO TOSS
  361.                 IF EXIST RUNBBS.NOW GOTO BBS
  362.                 GOTO START
  363.        :BBS
  364.                 IF EXIST RUNBBS.NOW DEL RUNBBS.NOW
  365.                 RA -mC:\FD\FD.EXE*M -E20 -N%1 -A0
  366.                 IF ERRORLEVEL 190 GOTO START
  367.                 IF ERRORLEVEL 150 GOTO MAILIN
  368.                 IF ERRORLEVEL  20 GOTO BBS
  369.                 IF ERRORLEVEL   3 GOTO MAILOUT
  370.                 GOTO BBS
  371.        :END
  372.         
  373.        In the batch file PTCCMAIN is run and when the program exits at 
  374.        errorlevel 100 (end of cycle) an errorlevel trapping line redirects 
  375.        the execution of the batch sequence to a tag called CYCLE. At this
  376.        point PCFU is run and if configured properly, makes some sense out 
  377.        of the 20 meg of files you got in the last 2-3 hours. Then PCFU
  378.        exits the batch file runs a tosser (GEcho). The RUNBBS.NOW file is 
  379.        created by PCFU if the BBS_START option set in PCFU.CFG is within 
  380.        the window you select to NOT cycle back to the PTCCMAIN program loop 
  381.        and forces your bbs package to take control of the computer until an 
  382.        event occurs that sets an errorlevel of 190, at which point the batch 
  383.        file recycles to run PTCCMAIN again. So as you can see with a few 
  384.        simple batch file commands and the use of PCFU your system, even 
  385.        running on a single non-multitasking computer can receive the days 
  386.        mail from Planet Connect and also be available for users to call 
  387.        during curtain hours of the day. Or you can have a Desqview 
  388.        window doing that double duty.
  389.  
  390.                                                                 Page 7
  391.  2.3   A word about ACONFIG.SKY
  392.  
  393.        Just the same way that your front end mailer uses a configuration 
  394.        program to tell it where to deposit files received over the modem.
  395.        PTCCMAIN uses a configuration to tell it where to shove files 
  396.        received over the satellite. And that config file is called
  397.        ACONFIG.SKY Here is the ACONFIG.SKY file that is currently being 
  398.        used on my system.
  399.  
  400.    #         net grp usr     maj min top type    destination         limit
  401.    :rulebase, *,  1,  *,      *,  *,  *, disk, C:\STATLITE\SKYINFO/,   *
  402.    :rulebase, *,  2,  *,      *,  *,  *, disk, C:\SKYDATA/,            *
  403.    :rulebase, *,  3,  *,      *,  *,  *, disk, C:\SATELITE/UPDATES/,   *
  404.    :rulebase, *,  4,  _SKYID, *,  *,  *, disk, C:\SATELITE\PERSONAL/,  *
  405.    :rulebase, *,  5,  *,      *,  *,  *, disk, C:\SATELITE\FIDO/,      *
  406.    :rulebase, *,  6,  *,      *,  *,  *, disk, C:\SATELITE\WEATHER/,   *
  407.    :rulebase, *,  7,  *,      *,  *,  *, disk, C:\SATELITE\TV/,        *
  408.    :rulebase, *,  8,  *,      *,  *,  *, disk, C:\SATELITE\DIR08/,     *
  409.    :rulebase, *,  9,  *,      *,  *,  *, disk, C:\SATELITE\DIR09/,     *
  410.    :rulebase, *, 10,  *,      *,  *,  *, disk, C:\SATELITE\DIR10/,     *
  411.    :rulebase, *, 11,  *,      *,  *,  *, disk, C:\SATELITE\DIR11/,     *
  412.    :rulebase, *, 12,  *,      *,  *,  *, disk, C:\SATELITE\DIR12/,     *
  413.    :rulebase, *, 13,  *,      *,  *,  *, disk, C:\SATELITE\DIR13/,     *
  414.    :rulebase, *, 14,  *,      *,  *,  *, disk, C:\SATELITE\DIR14/,     *
  415.    :rulebase, *, 15,  *,      *,  *,  *, disk, C:\SATELITE\DIR15/,     *
  416.    :rulebase, *, 16,  *,      *,  *,  *, disk, C:\SATELITE\DIR16/,     *
  417.    :rulebase, *, 17,  *,      *,  *,  *, disk, C:\SATELITE\DIR17/,     *
  418.    :rulebase, *, 18,  *,      *,  *,  *, disk, C:\SATELITE\DIR18/,     *
  419.    :rulebase, *, 19,  *,      *,  *,  *, disk, C:\SATELITE\DIR19/,     *
  420.    :rulebase, *, 20,  *,      *,  *,  *, disk, C:\SATELITE\DIR20/,     *
  421.  
  422.        Now while I don't profess to be 100% knowlegable about all the 
  423.        ins and outs of how and why this file works with the main
  424.        PTCCMAIN programs, I do know this, If a program that comes over
  425.        the satellite has a marker on it that matches the line in this
  426.        config file that says rulebase, *, 5, it is going to end up on
  427.        my system in the directory C:\SATELITE\FIDO and is it is marked
  428.        for rulebase 15 it will end up in the directory C:\SATELITE\DIR15
  429.        The second thing that I am aware of is that if a file comes into
  430.        the system that PTCCMAIN cannot find a match for it will be placed
  431.        on the C:\SKYDATA directory of the receiving system.
  432.        From this you can see that a properly set ACONFIG.SKY is of the
  433.        upmost importance and you will need this information when you 
  434.        setup the PCFU.CFG file.
  435.        
  436.        Note: Any changes you make to the ACONFIG.SKY file will not take
  437.              effect until you run the MAKECFG.EXE program that come with
  438.              PTCCMAIN.
  439.  
  440.  
  441.  
  442.                                                                 Page 8
  443.  
  444.  3.    Program Overview
  445.        
  446.        Here is what PCFU will and won't do.
  447.        
  448.        PCFU will MOVE/COPY (Move files across the same drive or Copy  
  449.        file from one drive to another in a multidisk and/or multinode
  450.        enviroment.
  451.        
  452.        Check for duplicate files coming into the system over the satellite 
  453.        using the filename, filesize, archive date and archive time to do 
  454.        the match and delete files that have an exact match within a certain 
  455.        number of days (configurable).It will NOT delete files with the same 
  456.        name that are received in the alloted time frame if the filename 
  457.        matches but the filesize, date or time has changed from the last 
  458.        time a file of that name arrived on your system, instead it will 
  459.        move/copy this CHANGED files to a SAFE directory.
  460.        
  461.        Move/copy all inbound files to a holding directory and/or a tossing 
  462.        directory or just leave them where they are if you would like to 
  463.        toss directly from where PTCCMAIN deposited them.
  464.  
  465.        Pre-process *.TIC type files in a orderly paired match of the *.TIC 
  466.        and the file that is associated with it, and will optionally 
  467.        generate an ascii text message of the files that arrived along with 
  468.        thier discriptions.
  469.  
  470.        Keep track of the Files_To_Be_Sent files list (UPLD.LST or date.LST)
  471.        sent to it and if a change in the list is detected it will add the 
  472.        new list to a master log with a date and time stamp of when the file 
  473.        was first detected.
  474.  
  475.        Keep a log of the files received between the detection of the 
  476.        UPLD.LST or date.LST changes and maintain a log called RECEIVED.NOT 
  477.        of the files that were on the list but have not been received, and 
  478.        build a file called FREQTHEM.NOW that can be used to file request any
  479.        files that were missed so you can automaticly file request them.
  480.  
  481.        Maintain system logs to a reasonable size so manually log deletes
  482.        will not be needed.
  483.  
  484.        Copy ANY file to ANY directory using ANY filespec and log it to
  485.        ANY log file you want.
  486.  
  487.        Work under any version of DOS and all dos based LAN systems or
  488.        multitaskers.
  489.        
  490.        Manage the use of your computer to allow it to be a part time
  491.        satellite receive system and also be used as a computer for 
  492.        your BBS. An easy way to get both satellite use and BBS use
  493.        from a single machine without the need for a multitasker.
  494.  
  495.        As for what PCFU WON'T do, it won't toss mail or post directly
  496.        to your message base, and it has nothing at all to do with the
  497.        actual downlink operation of the satellite files.
  498.        And it isn't crippled in any way, shape or form, registered or not.
  499.  
  500.                                                                 Page 9
  501.  
  502.        Things 'I' won't do: 
  503.        
  504.        Release the next version before it's ready to be released. I'm 
  505.        sure that we will find a few bugs in this version of PCFU and I 
  506.        will attempt to correct them as quickly as I can. But just as I 
  507.        did with the conversion of PCUTILS to PCFU, if I'm not satisfied 
  508.        with it,it stays right here getting the acid test till I am.  :-)
  509.        
  510.  3.1   How PCFU Works
  511.  
  512.        Note: The following discription assumes DEFAULT setting, the highly
  513.              configurable options in PCFU will be explained later.
  514.        
  515.        Here's where we take the mystery out of how PCFU does it stuff. If
  516.        you understand this 'COPY TEST.TXT ..\HOLD >> COPY.LOG' you are well
  517.        on your way to understanding how this program works, nothing up my
  518.        sleeve, no mirrors, and it didn't take a Phd in programing to do it,
  519.        just some simple logic and the fact that nobody told me it couldn't
  520.        be done the way I wanted to do it. Here we go.......
  521.  
  522.        When you first fire up PCFU it read the command line to see if there
  523.        is enough info in it to do something it knows how to do. Next it reads
  524.        the configuration file to gain the knowledge of the defaults and 
  525.        options that YOU decided YOU wanted it to know about.
  526.        
  527.        If all goes well to this point it looks for a file called PCFU.BSY
  528.        and if found will assume it is running under a multitasking system
  529.        and that another copy of PCFU is running on another node/task and
  530.        will abort exacution of the program. You have 60 sec. to override
  531.        the abort sequence, if you DO override it the PCFU.BSY file will
  532.        be deleted automaticly so the program won't hang each time it fires
  533.        up like PCUTILS use to, forcing you to go in and delete the file
  534.        by hand. If you force an override and PCFU is actully running on 
  535.        another node, you can take it to the bank that you are going to have 
  536.        a big mess on you hands.... ;-)
  537.  
  538.   If the DUPx function is called:
  539.  
  540.        Next it looks for a new UPLD.LST (I hope Boyd doesn't change this 
  541.        on me I worked long and hard on this little routine) If it finds the 
  542.        file it will trigger the appending of this file to a master log, 
  543.        creates of a file with file names in it that were on the last upload 
  544.        list but did not get detected by the program as received, FREQTHEM.NOW,
  545.        the creation of a new file to track files as they are received from the 
  546.        new UPLD.LST called RECEIVED.NOT and the optional reprocessing of files 
  547.        that were received but were unknown at the time.
  548.        
  549.        At this point the program processes the duplicate index file PCFU.IDX
  550.        removing all lines in it (this is a plan ascii file) that are older 
  551.        then the number of days you have defined with the x option when you 
  552.        call it.
  553.        
  554.        Note: x defaults to 5 days if the x option is left blank.
  555.  
  556.        Now is when it gets to have fun, it runs through your inbound file
  557.        directory and deletes anything that is in there that has an exact 
  558.        match in the PCFU.IDX, renames the PCFU.IDX to OLD.IDX and then in
  559.        a single operation move the NEW and CHANGED files to HOLDING and/or
  560.        SAFE directories and rebuids a new index files with the new files
  561.        in it, the OLD.IDX is appended to the end of the new one.
  562.        
  563.        The last things PCFU does is looks into your config file to verify
  564.        if the timing window for your BBS is set and if so creates a file 
  565.        called RUNBBS.NOW (just a semaphore) that you can use to redirect
  566.        your batch file after exiting PCFU and purges the log files by the
  567.        option set in your config file..
  568.  
  569.                                                                 Page 10
  570.  
  571.   If the MOVx function is called:
  572.        
  573.        The program defaults to move x number of 0000FFFF.??? files from
  574.        your holding directory to the tossing directory. This function is 
  575.        used mainly in a lan or multitask enviroment where you have another
  576.        node or task call for a file transfer on the fly. Here is a section 
  577.        of my batch file that tosses only one mail bundle at a time, so the 
  578.        node isn't rapped up for hours tossing an endless supply of mail.
  579.         
  580.         Note: Please let me explain something here, before you get a big
  581.               chuckle out of it like a friend of mine did. My A: drive
  582.               is a 1 Gig drive that is remaped on a Lantastic network.
  583.               I was running out of drive letters, so everyboby send in
  584.               your buck so I can afford NetWare.  :-)
  585.         
  586.         ...clip...
  587.  
  588.         :MOREMAIL
  589.  
  590.                 ALLFIX MGR
  591.                 GECHO TOSS
  592.                 GSTATS 3
  593.                 GECHO IMPORT
  594.                 RAMSG LINK
  595.  
  596.         :MAILOOP
  597.                 IF EXIST A:\SIM\SOMENODE.BUSY GOTO STARTBBS
  598.                 PCFU MOV 1
  599.                 IF EXIST A:\FDPRO\INMAIL\0000FFFF.???  GOTO MOREMAIL
  600.          
  601.          ...clip...
  602.  
  603.        What this does is allows me to toss the inbound mail during the 
  604.        early afternoon hours when the bbs is not as busy, but if a node 
  605.        becomes busy during the mail tossing process the file SOMENODE.BSY 
  606.        is detected and the toss loop is aborted until any node cycles 
  607.        through again and starts the mail toss cycle up. It just keeps the 
  608.        tossing node from slowing down the whole system when it's banging 
  609.        the poo-poo out of the hard drive. So as you can see if you are
  610.        running under a lan or multitasking system you can use the MOV
  611.        function of PCFU to more or less manage some system resources.
  612.  
  613.  3.2   Setting the PCFU enviroment
  614.  
  615.        As mentioned in the previous description of how PCFU works, PCFU
  616.        first searches out a config file, and a PCFU environment variable
  617.        can be set to have PCFU look for that config file in a certain
  618.        directory on your system.
  619.  
  620.  3.2.1 PCFU Enviroment Variable  (optional)
  621.  
  622.        If you set a enviroment veriable of something like:
  623.  
  624.        SET PCFU=C:\PCFU  in your batch file that you fire the system
  625.        up on then the program will look for a file C:\PCFU\PCFU.CFG first 
  626.        and then look in the current directory that you call PCFU from
  627.        for the default config file named PCFU.CFG
  628.        We will go into detail later in how to override the config file
  629.        from the command line.
  630.  
  631.                                                                 Page 11
  632.  
  633.  3.2.2 DIRCMD Enviroment Veriable
  634.  
  635.        PCFU will attempt to detect a DIRCMD environment variable that 
  636.        is set, reset it to NUL on the fly and restore it back to the
  637.        original way it was on exiting. But if you have trouble with
  638.        PCFU wiping your DIRCMD variable out (I guarantee I can do that)
  639.        then reset it in your batch file when you exit a PCFU call.
  640.  
  641.           I.E. DIRCMD=/p
  642.  
  643.  3.3   PCFU <> Dos relationship
  644.  
  645.        Yes I will admit that PCFU still uses one DOS call to do its
  646.        dirty work 'DIR' it is a quick and dirty way to get all the 
  647.        information I need as fast as possible without having to reinvent 
  648.        the wheel and until I come up with a routine that does a better 
  649.        job, faster, than DIR can we're both stuck with it, and I'll
  650.        just put some chrome hubcaps on the wheel.
  651.  
  652.  3.4   Easy Setup
  653.  
  654.        PCFU should not be hard to set up on your system, If I where 
  655.        setting it up as someone that was not the author I think I
  656.        would use the following steps:
  657.  
  658.        1. Unzip the archive to a directory of it's own called PCFU
  659.        2. Read the docs
  660.        3. Set may enviroment variables
  661.        4. Read the docs!
  662.        5. Build a PCFU.CFG file
  663.        6. Read the docs!!
  664.        7. Modify the batch files to reflect the new commands
  665.        8. Read the docs!!!
  666.        9. Cross my fingers and fire this baby up........
  667.  
  668.        By the way, if all else fails READ THE DOCS !!!!! 
  669.        I spent more time writing them then the program.
  670.  
  671.        Note:
  672.        
  673.        PCFU will not create directories or sub-directories that are
  674.        listed in your config file, but you can verify all paths and files,
  675.        if the -v switch is set on the command line, The -v switch will verify
  676.        the config file ONLY and force the program to exit. So when you think 
  677.        you have the config file correct just run this from the command line:
  678.  
  679.        PCFU DUP -v
  680.        
  681.        before using the program for the first time. 
  682.  
  683.                                                                 Page 12
  684.  
  685.  3.5   PCFU.CFG
  686.  
  687.        Enclosed in this archive is a file called A_PCFU.CFG, it is a
  688.        sample config file that you can modify for your own use on your
  689.        system. The default name of the config file that PCFU looks for
  690.        is PCFU.CFG so it would be best to copy the sample file to a 
  691.        file by that name and then go ahead and modify the PCFU.CFG to
  692.        your needs. The search that PCFU uses for its config file is:
  693.  
  694.        1. -cpath\file switch
  695.        2. PCFU= path using the file name PCFU.CFG
  696.        3. Current directory using the file name PCFU.CFG
  697.  
  698.        The following are options that can be used within the config 
  699.        file with an explanation of each one. 
  700.  
  701.        Note: PCFU will attempt to make some sense out of all lines
  702.              in the config by using some string concatination routines 
  703.              so you can get a little sloppy when working with the file 
  704.              but don't go overboard.
  705.              
  706.              SATELITE_IN=C:\SATELITE\NEW\ 
  707.              and
  708.              satelite_In = c:\ SATElITE \ nEW 
  709.              
  710.              Would all mean the exact same thing to PCFU.
  711.  
  712.        BBS_NAME=    The Name of your BBS, at present this is only used
  713.                     as a header in the PTIC.MSG file.
  714.        
  715.        SATELITE_IN= The directory that PCFU will default to when doing
  716.                     the dup check of new and changed inbound files.
  717.  
  718.                     Note: When using the DUP command the -o switch will
  719.                           override the SATELITE_IN directory.
  720.  
  721.        HOLD_DIR=    The directory that new files will be moved to after 
  722.                     the duplicate check is made. By leaving this entry 
  723.                     out of the config file NO intermediate holding area 
  724.                     will be used. HOLD_DIR will default to the same
  725.                     directory as TOSS_DIR and the DUP command will move 
  726.                     files directly to the TOSS_DIR from the SATELITE_IN 
  727.                     directory.
  728.                     
  729.                     Note: When using the DUP command the -t switch will
  730.                           override the HOLD_DIR directory.
  731.                           When using the MOV command the -o switch will
  732.                           override the HOLD_DIR directory.
  733.                     
  734.        TOSS_DIR=    The directory your MAILER exspects to find inbound 
  735.                     mail and files in, Under lan and multitask systems the 
  736.                     default MOV command will move 0000FFFF.??? files
  737.                     from the HOLD_DIR to the TOSS_DIR. And the MOV -fTIC
  738.                     command will move paired TIC files here.
  739.                     
  740.                     Note: When using the MOV command the -t switch will
  741.                           override the TOSS_DIR directory.
  742.  
  743.                                                                 Page 13
  744.  
  745.        SAFE_DIR=    The safe directory is used when a file is received
  746.                     before the x days defined in the DUPx command and
  747.                     is found to have the same name as a file in the 
  748.                     dup index but the file size,date or time has changed.
  749.                     These may be good files or badly recieved files so 
  750.                     they are quaretined until you can take a look at
  751.                     them. I use a line in my batch file that makes MBUTIL
  752.                     post a private message to me if anything ends up in
  753.                     this directory.
  754.  
  755.                     Note: If an attempt is made to move a new file to the 
  756.                           hold or toss directory and a file is found in 
  757.                           that directory with the same name then the new 
  758.                           file will also be moved to the safe directory.
  759.                           THIS DIRECTORY MUST BE DEFINED !!!!!!!!!!!!!!
  760.        
  761.        INDEX_DIR=   PCFU builds indexes, some permanent and a whole lot
  762.                     of temporary ones, so that it doesn't frag your disk 
  763.                     by just dumping them all over the place I would suggest
  764.                     that you set this to something like C:\PCFU\INDEX\
  765.                     The following default index's are are created here.
  766.                     PCFU.IDX, RECEIVED.NOT,FREQTHEM.NOW and PTIC.MSG
  767.  
  768.                     Note: The -x switch will overrride the PCFU.IDX only.
  769.        
  770.        LOG_DIR=     Where the logs that PCFU creates should be stored
  771.                     only the following default logs are created here.
  772.                     PCFU.LOG, PMOV.LOG and UPLDMSTR.LOG
  773.        
  774.                     Note: The -l switch will override the PCFU.LOG
  775.                           The -m switch will override the PMOV.LOG
  776.                           The last thing that PCFU does before exiting the
  777.                           program is to attempt to cull logs that are over 
  778.                           the size set in LOG_SIZE. The -l and -m switches 
  779.                           will reset the path for that cull of the logs. Just
  780.                           the same as they reset the path/filename.
  781.  
  782.        SEM_DIR=     This points to a semaphore directory where you would 
  783.                     like the files RUNBBS.NOW and PCFU.BSY created.
  784.  
  785.        UPLD_FILE=   This is a full path and file to the UPLD.LST that is
  786.                     sent out each day, and was included in the event that
  787.                     PC decides to change the file name in the future.
  788.  
  789.                     An -subdate switch can also be used with this option
  790.                     and can be pointed at the dated upload list that PC
  791.                     has been sending out as of late.
  792.  
  793.                     I.E.  UPLD_FILE= C:\SATELITE\FIDO\-subdate.LST
  794.  
  795.                     and the file that will be searched for would be something
  796.                     like 01-16-94.LST  in the FIDO directory.
  797.                     
  798.                     Note: Make sure this points to the UNLOCKED file,
  799.                           if you run PCFU from another node/task and 
  800.                           PCTTMAIN is running somewhere else.
  801.                           (it is in two places on the disk)
  802.        
  803.  
  804.  
  805.        START_BBS=   The start time (24 hour clock 00:00 = midnite) that 
  806.                     if PCFU exits and finds the time to match the window
  807.                     set by this start time and within the BBS_RUN= hours
  808.                     length set. PCFU will create a file called RUNBBS.NOW
  809.                     in the INDEX_DIR
  810.  
  811.        BBS_RUN=     A intiger number from 0 to 23, setting the number of
  812.                     hour from the START_BBS time to create the RUNBBS.NOW 
  813.                     file on an exit from PCFU.
  814.                     
  815.                     ( Continued on next page )
  816.  
  817.                                                                 Page 14
  818.        
  819.        REC_ALL      If this option is set in the config file and the 
  820.                     RECIEVED.NOT file is empty (all files on the UPLD.LST
  821.                     have been received) the the timing window set by the 
  822.                     START_BBS and BBS_RUN will be overriden and the 
  823.                     RUNBBS.NOW file will be created when PCFU exits.
  824.       
  825.        LOG_SIZE=    Number of maximum lines to keep in your log files.
  826.                     0 or not defined = No automated log culling.
  827.  
  828.        SEARCH_IN=   This is a multiline config option where you can define
  829.                     all of the paths that you want PCFU to search when it
  830.                     if looking for files that have been received, it uses
  831.                     these paths to cull the RECEIVED.NOT file.
  832.  
  833.  3.6   The PCFU Files
  834.                 
  835.  3.6.1   README.1ST   Do I need to explain this one?
  836.                      
  837.  3.6.2   PCFU.DOC     This is a full documentation file on how to use
  838.                       and abuse PCFU.
  839.  
  840.  3.6.3   PCFU.NEW     Any updates and fixes to PCFU will be listed in
  841.                       this file.
  842.  
  843.  3.6.4   PCFU.EXE     Planet Connect File Utility executible.
  844.  
  845.  3.6.5   PCFU.CFG     Default PCFU configuration file (sample: A_PCFU.CFG)
  846.  
  847.  3.6.6   PCFU.IDX     Default PCFU index file (created by PCFU.EXE {DUP})
  848.  
  849.  3.6.7   PCFU.LOG     Default PCFU log file (created by PCFU.EXE)
  850.  
  851.  3.6.8   PMOV.LOG     Default PCFU move log (created by PCFU.EXE {MOV})
  852.   
  853.  3.6.9   UPLDMSTR.LOG Default PCFU UPLD.LST master log 
  854.  
  855.  3.6.10  PTIC.MSG     Ascii message for posting (created by {MOV -fTIC})
  856.  
  857.  3.6.11  RECEIVED.NOT Files in the UPLD.LST that have not been received
  858.  
  859.  3.6.12  FREQTHEM.NOW File created from RECEIVED.NOT with a list of files
  860.                       that you may want to file request via land line.
  861.  
  862.  3.6.13  RUNBBS.NOW   File created by PCFU that can be used to flag
  863.                       your batch file to restart the BBS instead of
  864.                       cycling back to PCTTMAIN.
  865.  
  866.  
  867.                                                                 Page 15
  868.  
  869.  4     Program Commands and Switches
  870.  
  871.        PCFU  [with no options]
  872.    
  873.        Quick Help screen will be displayed to you for instant online help.
  874.  
  875.        PCFU DUP? or PCFU DUP ?
  876.  
  877.        Quick Help screen for the syntax of the DUP(x) command with all
  878.        options and switches.
  879.  
  880.        PCFU MOV? or PCFU MOV ?
  881.  
  882.        Quick Help screen for the syntax of the MOV(x) command with all
  883.        options and switches.
  884.  
  885.        Command Syntax:
  886.  
  887.              PCFU DUP x  -cPATH\FILE -oPATH -tPATH -sPATH -xPATH\FILE 
  888.                          -lPATH\FILE  -k -r -v
  889.   
  890.              PCFU MOV x  -cPATH\FILE -fFILE -fTIC -oPATH -tPATH -sPATH 
  891.                          -lPATH\FILE -mPATH\FILE -k -p
  892.    
  893.  4.2   DUP command:        
  894.                                             
  895.        DUPx        (Note: Do not put a space between DUP and x)
  896.  
  897.        DUP is a prime command with defaults and is used to: 
  898.      
  899.        1. Purge duplicate files in the directory of your choice.
  900.         
  901.         Default: SATELITE_IN= pointed to in PCFU.CFG 
  902.         Options: SATELITE_IN= pointed to in config file set by -c 
  903.                               switch or any directory pointed to by 
  904.                               the -o switch (see below)
  905.      
  906.        2. Move/Copy NEW or CHANGED files in the directory that was 
  907.           checked to another directory of your choice, or just leave 
  908.           them where they are and exit PCFU so that you can do what
  909.           you like with the files after they have been dup checked.
  910.         
  911.         Default: HOLD_DIR= pointed to in PCFU.CFG 
  912.                            or TOSS_DIR= pointed to in PCFU.CFG if a 
  913.                            holding directory is not defined.
  914.         Options: HOLD_DIR= pointed to in config file set by -c switch or 
  915.                            TOSS_DIR= pointed to in config file if a holding 
  916.                            directory is not defined.
  917.                            or any directory pointed to by the -t switch 
  918.      
  919.        3. Use and purge the index of your choice when duplicates are 
  920.           checked, with the -o and -x switches (see below) multiple 
  921.           index files can be created for the many different directories 
  922.           defined in the A_CONFIG file and all be managed with one simple 
  923.           to use program. 
  924.      
  925.         Default: INDEX_DIR= pointed to in PCFU.CFG 
  926.         Options: INDEX_DIR= pointed to in config file set by -c switch 
  927.                             or any index pointed to by the -x switch 
  928.  
  929.                                                                 Page 16
  930.  
  931.        4. Maintain the PCFU.LOG to include culling that log to a set size 
  932.           each time you run PCFU so you don't have to manually delete or
  933.           edit it to keep it from taking over your hard drive.
  934.         
  935.         Default: LOG_DIR= pointed to in PCFU.CFG 
  936.         Options: LOG_DIR= pointed to in config file set by -c switch 
  937.                           or any log pointed to by the -l (L) switch 
  938.      
  939.        5. Maintain a running log of the 'files of the day' list sent out to
  940.           each system stamped with the date and time received for each file.
  941.      
  942.         Default: UPLD_LIST= pointed to in PCFU.CFG 
  943.         Options: UPLD_LIST= pointed to in config file set by -c switch 
  944.  
  945.        6. Maintain a RECEIVED.NOT (got it from my son) list that originally 
  946.           starts with the UPLD.LST and as files are received off the satellite 
  947.           the file names a checked against the remaining files in the 
  948.           RECEIVED.NOT and deleted from that list. At the time that a new 
  949.           UPLD.LST is received thet list is checked to see if any files remain 
  950.           unreceived. If found the file is renamed to FREQTHEM.LST and
  951.           a new RECEIVED.NOT is created from the new UPLD.LST
  952.  
  953.         Default: INDEX_DIR= pointed to in PCFU.CFG 
  954.         Options: INDEX_DIR= pointed to in config file set by -c switch 
  955.                             the -x switch will NOT override this path so a 
  956.                             good index directory path has to be defined in 
  957.                             the config file.
  958.  
  959.  4.2.1   X option for DUP
  960.  
  961.          x can be any number from 0 to 365 or can be left blank and is used 
  962.          by PCFU to manage the size of the index file by removing any entries 
  963.          in the index file that are older then x days prior to doing the 
  964.          duplicate check of a directory. If x is set to zero (0) then no 
  965.          purging of the index is done on the execution of the DUP command and 
  966.          if left BLANK A DEFAULT VALUE OF FIVE (5) is assummed. FIVE (5) is 
  967.          the recommended value and has proved to work well on my system when 
  968.          tossing Fido mail and files.
  969.  
  970.          Examples: 
  971.                  
  972.                  PCFU DUP 3   (dup check, purge index older then 3 days)
  973.                  PCFU DUP0    (dup check do not purge index)
  974.                  PCFU DUP     (dup check purge index with default of 5 days)
  975.  
  976.  4.3   MOV command:
  977.  
  978.        MOV is a root prime command with defaults and is used to: 
  979.      
  980.        1. MOVE/COPY x number of files in the directory of your choice to 
  981.           any other directory in date and time order and to log each file 
  982.           in a log file of your choice as they are moved.
  983.         
  984.         Default: From:  HOLD_DIR= pointed to in PCFU.CFG 
  985.                  To:    TOSS_DIR= pointed to in PCFU.CFG 
  986.                  Using: FILESPEC= 0000FFFF.*
  987.  
  988.                                                                 Page 17
  989.         
  990.         Options: From:  HOLD_DIR= pointed to in config file set by -c switch 
  991.                         or any directory pointed to by the -o switch 
  992.                  To:    TOSS_DIR= pointed to in config file set by -c switch 
  993.                         or any directory pointed to by the -o switch 
  994.                  Using: FILESPEC= defined by using the -f switch or the 
  995.                         special FileSpec -fTIC
  996.  
  997.        2. If used with the -fTIC FileSpec and -POST switch PCFU will create 
  998.           an ascii output message of the received tic files in a format 
  999.           suitable for posting in a Netmail or EchoMail area or adding to 
  1000.           a log.
  1001.  
  1002. 4.3.1   X option for MOV
  1003.  
  1004.         x can be any number or can be left blank and is used by PCFU to 
  1005.         control the maximun number of file that the MOV command attempts 
  1006.         to MOVE/COPY from the ORIGITATION directory of your choice to the 
  1007.         TERMINATION directory of your choice.
  1008.         If x is set to zero (0) NO files will be moved and if left BLANK, 
  1009.         ALL files will be MOVED/COPIED from the originating directory to 
  1010.         the destination directory.
  1011.  
  1012.      Examples: PCFU MOV 5   Move 5 0000FFFF.xxx mail bundles from the 
  1013.                             HOLD_DIR directory to the TOSS_DIR directory.
  1014.                
  1015.                PCFU MOV     Move ALL 0000FFFF.xxx mail bundles from the 
  1016.                             HOLD_DIR directory to the TOSS_DIR directory.
  1017.                
  1018.                PCFU MOV0 -fTIC -p
  1019.  
  1020.                             Create the PTIC.MSG file using the *.TIC files
  1021.                             in the HOLD_DIR directory, but don't move any
  1022.                             files.
  1023.  
  1024.                PCFU MOV3 -fPCUSENET.* -oC:\SATELITE\NEWSGRP -tC:\FRED\BAG
  1025.  
  1026.                              Move 3 PCUSENET mail bundles from the directory
  1027.                              called NEWSGRP in date and time order to a 
  1028.                              directory called BAG.
  1029.  
  1030.  4.4   -c switch
  1031.  
  1032.        Syntax: -cPATH/FILE
  1033.  
  1034.        The -c switch is used to override the default PCFU.CFG file 
  1035.        information and can be used to point the program to a different 
  1036.        configuration for the execution of the command at run time. PCFU 
  1037.        uses the following search path when looking for the configuration 
  1038.        file.
  1039.      
  1040.        1. Look for file pointed to by -cPATH\FILE switch
  1041.        2. Look for the file PCFU.CFG in the path of the enviroment 
  1042.           veriable set by using SET PCFU=path
  1043.        3. Look for file PCFU.CFG in the current directory that PCFU is 
  1044.           called from.
  1045.        4. Aborts execution of the program and notify you of failure to 
  1046.           locate a suitable configuration file.
  1047.  
  1048.                                                                 Page 18
  1049.  
  1050.        Example: PCFU DUP5 -cC:\PCFU\NEW.CFG
  1051.  
  1052.        Notes: If using the -c switch a FULL path MUST be defined and is 
  1053.               checked for validity, if the file CAN NOT be found the 
  1054.               program will try to work its way down through the search 
  1055.               sequence and if another PCFU.CFG file is found the program 
  1056.               will use the first one it finds and notify you on the SCREEN 
  1057.               of which config file is being used.
  1058.           
  1059.  4.5   -o switch
  1060.  
  1061.        Syntax: -oPATH
  1062.  
  1063.        The -o switch stands for ORIGINATE PATH and is used in a case 
  1064.        where you would need to override the SATELITE_IN or HOLD_DIR path 
  1065.        that is defined in the PCFU.CFG or the configuration file pointed 
  1066.        to by the -c switch, since PCFU was designed to delete duplicate 
  1067.        file in the inbound satellite directory and move files from the
  1068.        holding directory to the toss directory, It will work great in
  1069.        default mode for that, but what about all the files in the Internet 
  1070.        newsgroups you would not want to toss them over and over again. 
  1071.        So you have a few choices here. 
  1072.      
  1073.        1. Rework the Planet Connect config file to dump all files to 
  1074.           one directory and then use the DUP command to delete the dups.
  1075.        2. Build another PCFU.CFG file to reflect the directory that the
  1076.           news groups are in and call it with the -c switch.
  1077.        3. Call PCFU more then once with the following lines in your batch 
  1078.           file.
  1079.  
  1080.           PCFU DUP4                         (normal dup check)
  1081.           PCFU DUP4 -oC:\SATELITE\NEWSGRP   (dup check of NEWSGRP directory)
  1082.  
  1083.        I think you can see that you could get pretty creative here and take 
  1084.        care of ANYTHING that Planet Connect could send to you in the future.
  1085.  
  1086.        Example: PCFU MOV5 -oC:\SATELITE\RIME\
  1087.      
  1088.        Notes: Only one (1) -o switch can be used on a command line
  1089.               Trailing (\) is optional
  1090.               The -o switch will override the -c switch if called together
  1091.  
  1092.  4.6   -t switch
  1093.        
  1094.        Syntax: -tPATH
  1095.  
  1096.        The -t switch stands for TERMINATE PATH and is used in a case 
  1097.        where you would need to override the HOLD_DIR and/or TOSS_DIR 
  1098.        path that is defined in the PCFU.CFG or the configuration file 
  1099.        pointed to by the -c switch, since PCFU was designed to move NEW 
  1100.        and CHANGED files in the inbound satellite files directory to an 
  1101.        intermediate HOLDING directory or directly to the TOSSING directory 
  1102.        or to move files from the holding directory to the tossing directory
  1103.        it works great for that purpose. But what what about all the files 
  1104.        in the ROSENET area that you would like to check for dups and then 
  1105.        move to the C:\QWK\TOSSTHEM\ directory of proccessing ?
  1106.        You quest it, and I think you are starting to catch on to just how 
  1107.        flexible PCFU can be.
  1108.  
  1109.                                                                 Page 19
  1110.  
  1111.        Example:
  1112.  
  1113.        PCFU DUP1 -oC:\SATELITE\ROSE\ -tC:\QWK\TOSSTHEM\ 
  1114.  
  1115.        Notes: Only one (1) -t switch can be used on a command line at a 
  1116.               time
  1117.               Trailing (\) is optional
  1118.               The -t switch will override the -c switch if called together
  1119.  
  1120.  4.7   -s switch
  1121.  
  1122.        Syntax: -sPATH
  1123.      
  1124.        The -s switch stands for SAFE PATH and is used in a case where you 
  1125.        would need to override the SAFE_DIR=  path that is defined in the 
  1126.        PCFU.CFG or the configuration file pointed to by the -c switch, 
  1127.        since PCFU was designed to move NEW and CHANGED files in the inbound 
  1128.        satellite files directory to an intermediate HOLDING directory or 
  1129.        directly to the TOSSING directory  or from the HOLDING directory to 
  1130.        the TOSSING directory it is possible that a CHANGED or duplicate 
  1131.        file (same file name but different file size or date/time stamp) 
  1132.        could be found in the inbound directory that if moved to the HOLDING 
  1133.        or TOSSING directory could overwrite and existing file there that 
  1134.        has not been proccesed yet so if the program detects a filename 
  1135.        match it will move the file to the directory pointed to by the 
  1136.        SAFE_DIR= path pointed to in PCFU.CFG or the configuration file 
  1137.        pointed to by the -c switch, or it will override that path by 
  1138.        using the -s switch if defined on the command line.
  1139.  
  1140.        PCFU DUP -sC:\SATELITE\SAFE\
  1141.  
  1142.        Notes: Only one (1) -s switch can be used on a command line at a 
  1143.               time, trailing (\) is optional
  1144.               The -s switch will override the -c switch if called together
  1145.               NO double filename check is done when moving files to the 
  1146.               SAFE directory, if a duplicate filename exists in the safe 
  1147.               directory it will be overwriten with the new file.
  1148.               ( it's on the things to do list )
  1149.  
  1150.  4.8   -x switch
  1151.  
  1152.        Syntax: -xPATH\FILE
  1153.  
  1154.        The -x switch stands for INDEX and is used in a case where you 
  1155.        would need to override the INDEX_DIR= path that is defined in 
  1156.        the PCFU.CFG or the configuration file pointed to by the -c switch, 
  1157.        Lets suppose you want to dup check and index the INTELEC Qwk files,
  1158.        well since the extension on the file is always QWx, if you had those
  1159.        files being loged to the default PCFU.IDX, you would most likely
  1160.        have those files dumped to the SAFE directory every day because the 
  1161.        file name would be the same but the file size, date and time would 
  1162.        change from day to day. So how about if we use a different index
  1163.        and set the x setting in DUP to only one day and when your sure that
  1164.        the files have changed delete that index and be ready to go for it
  1165.        again the next day.
  1166.  
  1167.                                                                 Page 20
  1168.  
  1169.        Example:
  1170.      
  1171.        PCFU DUP3 -oC:\SATELITE\INTEL\ -tC:\INTELTOS\ -xC:\INDEX\INTEL.IDX
  1172.  
  1173.        Notes: Only one (1) -x switch can be used on a command line at a 
  1174.               time, trailing (\) is optional
  1175.               The -x switch will override the -c switch if called together
  1176.        Hint:  PC changes the files that it uplinks around 7:30 AM EST so
  1177.               if you would delete the INTEL.IDX at 7:30AM each day the 
  1178.               index would be ready to take that days mail with no false
  1179.               dup problem.
  1180.  
  1181.  4.9   -f switch
  1182.  
  1183.        Syntax: -fFILE
  1184.  
  1185.        The -f switch stands for FILESPEC and is what makes the move 
  1186.        command so much fun to experiment with. A FILESPEC of 0000FFFF.* 
  1187.        can be set on the PCFU.CFG file as a default, or any other for 
  1188.        that matter. But you can override that filespec using the -f 
  1189.        switch so that any wildcard file search can be done, and the 
  1190.        files that match that search can be moved/copied in a date and 
  1191.        time order from any directory of your choice using the -o switch 
  1192.        to any directory of your choice using the -t switch, or from the 
  1193.        default HOLD_DIR to the default TOSS_DIR if ether the -o or -t 
  1194.        switch are not used. The moved files are also logged to the 
  1195.        PMOV.LOG in the default LOG_DIR or in a log file of your choice 
  1196.        by using the -lPATH\FILE switch.
  1197.  
  1198.        Note: See -fTIC switch for examples
  1199.  
  1200.  4.9.1 -f switch
  1201.  
  1202.        Syntax: -fTIC
  1203.  
  1204.        PCFU also uses a special -fTIC filespec to tell it to do a special
  1205.        move function on *.TIC type files and it's attached file using the 
  1206.        following logic in it's search.
  1207.        First PCFU catalogs al the *.TIC files in the HOLD_DIR or the 
  1208.        directory of your choice using the -o switch, next it reads a 
  1209.        *.TIC file to find out some information about its file attach. I 
  1210.        then attemps to move the attached file to the TOSS_DIR or any 
  1211.        directory of your choice using the -t switch and then moves the 
  1212.        *.TIC file that matches it also. It will continue to move matched 
  1213.        pairs of files until it has move all the file that are associated 
  1214.        with the *.TIC's that it cataloged.
  1215.      
  1216.        The only log that is kept of the moved TIC's is the file called 
  1217.        PTIC.MSG that will be created if the -POST switch is set when you 
  1218.        call -fTIC.It will also have other information stored in it about 
  1219.        the files,such as Filename, Date, Time, discription all in a neat 
  1220.        little message for those diehards that still use the old TICK file 
  1221.        proccessor and wish that they could make a message to post on the
  1222.        BBS's.
  1223.  
  1224.        The -fTIC switch WILL post failed move attempts to the PCFU.LOG 
  1225.        or any log of your choice using the -lPATH\FILE option
  1226.  
  1227.                                                                 Page 21
  1228.  
  1229.        Examples: PCFU MOV5 -fCRS.* -oC:\SATELITE\CRS    
  1230.                           
  1231.                           Move 5 CRS.xxx mail bundles from the CRS
  1232.                           directory to the TOSS_DIR directory.
  1233.                
  1234.                  PCFU MOV -f*.*  -tC:\FD\MAIL  
  1235.                           
  1236.                           Move ALL files from the HOLD_DIR directory to 
  1237.                           the C:\FD\MAIL directory.
  1238.                           About the same as doing a:
  1239.                           XCOPY C:\SATELITE\INBOUND\*.* C:\FD\MAIL
  1240.                           But keep in mind you now have a record of
  1241.                           what was moved a 3 AM while you are counting
  1242.                           sheep.
  1243.                
  1244.                   PCFU MOV7 -fTIC -lC:\LOGS\BADTIC.LOG -p
  1245.  
  1246.                           Move 7 TIC's and the files attached to them
  1247.                           in the HOLD_DIR directory to the TOSS_DIR and
  1248.                           log the files moved to a pretty little message
  1249.                           in PTIC.MSG, and log the unmatched TIC's to a
  1250.                           file called BADTIC.LOG in the C:\LOGS
  1251.                           directory.
  1252.  
  1253.  4.10  -l switch
  1254.  
  1255.        Syntax: -lPATH\FILE
  1256.  
  1257.        The -l (L) switch stands for LOG and is used in a case where you would 
  1258.        need to override the LOG_DIR= path and default PCFU.LOG filename that 
  1259.        is defined in the PCFU.CFG or the file pointed to by the -c switch.
  1260.  
  1261.        Example:
  1262.      
  1263.        PCFU DUP -lC:\SATELITE\LOGS\OTHER.LOG
  1264.  
  1265.         Notes: If using the -l (L) switch a PATH and FILE MUST be defined 
  1266.                and is checked for validity, if the program can not find the 
  1267.                log file defined, information is is dumped to PCFU.LOG.
  1268.  
  1269.  4.11  -m switch
  1270.  
  1271.        Syntax: -mPATH\FILE
  1272.  
  1273.        The -m switch stands for MOV and is used in a case where you would 
  1274.        need to override the LOG_DIR= path and default PMOV.LOG filename that 
  1275.        is defined in the PCFU.CFG or the file pointed to by the -c switch.
  1276.  
  1277.        Example:
  1278.      
  1279.        PCFU MOV -mC:\SATELITE\LOGS\OTHERMOV.LOG
  1280.  
  1281.         Notes: If using the -m switch a PATH and FILE MUST be defined 
  1282.                and is checked for validity, if the program can not find the 
  1283.                log file defined, information is is dumped to PMOV.LOG.
  1284.  
  1285.  
  1286.                                                                 Page 22
  1287.  4.12  -p switch
  1288.  
  1289.        Syntax: -p
  1290.  
  1291.        The -p (post) switch is used for in conjunction with the -fTIC 
  1292.        switch, It notifies PCFU to create a PTIC.MSG file file in the 
  1293.        index directory of the files that were proscessed by the
  1294.        PCFU MOVx -fTIC function.
  1295.  
  1296.        Note: This file is overwriten each time the function is called.
  1297.  
  1298.  4.13  -k switch
  1299.  
  1300.        Syntax: -k
  1301.      
  1302.        The -k (Keep) switch is used for testing or when you would like to 
  1303.        run PCFU to see that it will do what you want it to do without doing 
  1304.        any of the deleting of files,indexes,logs or any other thing that it 
  1305.        normally wipes out on it's marry way through your directories when it 
  1306.        runs. Basiclly it should be used for debuging you config files and 
  1307.        command line options as you are setting up PCFU and for nothing else.
  1308.  
  1309.  4.14  -r switch
  1310.  
  1311.        Syntax: -r
  1312.      
  1313.        The -k (Reprocess) switch is used for force the moving of unknown file
  1314.        back into the SATELITE_DIR when a new UPLD.LST is received. PCFU will
  1315.        look at the new list and transfer all files that match back into the 
  1316.        inbound SATELITE_DIR from the UNK_DIR.
  1317.  
  1318.        Note: Please keep in mind that the -o switch will override the 
  1319.              SATELITE_DIR so using the -o and -r switch together will move
  1320.              the unknown files to the directory defined by the -o switch.
  1321.  
  1322.  4.15  -v[w] switch
  1323.  
  1324.        Syntax: -v or -vw
  1325.      
  1326.        The -v (verify) switch will cause config and command line verification 
  1327.        on the fly with or without the VERIFY option being set in the PCFU.CFG
  1328.        If there is a configutation error PCFU will abort execution.
  1329.      
  1330.        The -vw (verify with wait) switch verifies and then waits 10 seconds 
  1331.        to give you time to read the screen before continuing execution.
  1332.  
  1333.                                                                 Page 23
  1334.   
  1335.  5.    Networking and Multitasking
  1336.  
  1337.        Here is where PCFU shines, it was made for it. I run a 8 node 
  1338.        system under a Lantastic net, with one node doing double duty as 
  1339.        both the satellite downlink and a BBS port from 4PM till midnite.
  1340.  
  1341.  5.1   Running PCFU in a network
  1342.  
  1343.        I call the PCFU DUPx command from every other node on the BBS each
  1344.        time the node cycles through. (FD/RA does a complete exit and 
  1345.        restart each time a user or inbound mail bundle comes in) This 
  1346.        keeps my inbound satellite directory clear, and with a little 
  1347.        batch file trick....
  1348.  
  1349.        :CHECKSAT         
  1350.                 PCFU DUP
  1351.                 IF EXIST K:\SATELITE\FIDO\*.* GOTO NOPACK
  1352.                 RD K:\SATELITE\FIDO
  1353.                 MD K:\SATELITE\FIDO
  1354.        :NOPACK
  1355.  
  1356.        ... I keep the fragmentation on the drive down to a minimum.
  1357.        
  1358.        PCFU was designed to shove files all over my network with the idea
  1359.        in mind that I didn't want to be bothered with anything unless a
  1360.        problem should come up that I had to look into. (SAFE directory
  1361.        message post and auto file request...  remember)
  1362.        
  1363.        Although file sharing was not implimented, with a few steps on
  1364.        your part and the help of the PCFU.BSY flag, you should be able
  1365.        to run PCFU on a lan with no possibility of it bumping into 
  1366.        itself.
  1367.  
  1368. 5.2   Running PCFU under Desqview
  1369.  
  1370.        I can only say this about Desqview, I had PCFU running under it 
  1371.        using the exact same configuration and I use with Lantastic, gave
  1372.        it a 512K big dos window to run in, and it was fat,dump and happy.
  1373.        You can most likely cut that down to 256k and not have a bit of
  1374.        trouble at all.
  1375.  
  1376.  5.3   Running PCFU with other multitaskers
  1377.  
  1378.        Hmmmmm.... I don't know, try it you may like it, It's plan vanella
  1379.        makes no funky bios calls, and needs to get at DOS's DIR function.
  1380.        If your multitasker can supply this go for it...  :-)
  1381.  
  1382.  5.4   File sharing
  1383.  
  1384.        IT DON'T DO THAT STUFF. If set up properly keeping an eye on the 
  1385.        PCFU.BSY flag it shouldn't need to. I have been running it for 3
  1386.        months and have never had a file sharing violation. 
  1387.        
  1388.  5.5   Moving vs Copying Files
  1389.  
  1390.        Or should I say Speed vs Flexibility, PCFU has enough smarts to
  1391.        try to MOVE a file first (Speed) and if it falls on its face it
  1392.        will revert to copying file (Flexibility in a lan situation) so
  1393.        you have the best of both worlds. Now it's up to you to get your
  1394.        network engineers so that all the grunt stuff that PCFU has to 
  1395.        do, it can do without jumping drives.
  1396.  
  1397.  6     Epilog
  1398.                                      
  1399.  6.1   Credits:
  1400.  
  1401.        It all goes to the guys at Planet Connect Data Services...
  1402.        Without the satellite system what would be the sense of this program.
  1403.  
  1404.  6.2   Thanks to:
  1405.  
  1406.        Boyd,Joe,Todd,Tim,Dennis,John,Doug,Robert and all the rest of
  1407.        you guys that made suggestions about how to improve PCUTIL.
  1408.  
  1409.        Special thanks to my wife Eileen and son Adam for putting up with 
  1410.        me over the last few months.
  1411.  
  1412.  6.3   Technical notes:
  1413.  
  1414.        PCFU is compiled using pure Quick Basic 4.5, uses no direct disk
  1415.        access, low level dos calls or screen writes. All indexes are in 
  1416.        plain ascii format for easy editing.  
  1417.  
  1418.                                                                 Page 24
  1419.  
  1420.  6.4   Technical support
  1421.  
  1422.        John Morano   The Genesis Project BBS  501-267-9600
  1423.        
  1424.        1:391/1180 @ FidoNet    john.morano@f1180.n391.z1.fidonet.org           
  1425.  
  1426.  6.5   Suggesting option for future versions
  1427.  
  1428.        Pleeeeeeez.................. :-)
  1429.  
  1430.