home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / UPCHECK / SFVL1004.ZIP / PMOVE200.ZIP / PMOVE.DOC next >
Text File  |  1986-06-10  |  21KB  |  540 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.                                    P M O V E
  17.  
  18.                                        by
  19.  
  20.                                  Norm Patriquin
  21.  
  22.  
  23.  
  24.                                    Version 2.0
  25.                                     June 1986
  26.  
  27.  
  28.  
  29.                         Table of Contents
  30.  
  31.  
  32.       What is PMOVE . . . . . . . . . . . . . . . . . . . . . .   1
  33.       What PMOVE does . . . . . . . . . . . . . . . . . . . . .   2
  34.       Command Mode Parameters . . . . . . . . . . . . . . . . .   3
  35.       Examples  . . . . . . . . . . . . . . . . . . . . . . . .   6
  36.       Registering PMOVE . . . . . . . . . . . . . . . . . . . .   7
  37.       Registration Form . . . . . . . . . . . . . . . . . . . .   8
  38.       Problems and Maintenance. . . . . . . . . . . . . . . . .   9
  39.       Other Utilities . . . . . . . . . . . . . . . . . . . . .  10
  40.                                                                 Page  1
  41.  
  42.       What is PMOVE
  43.       -------------
  44.  
  45.       PMOVE is a DOS command utility used to move files between
  46.       disks and directories on disks.  PMOVE combines the functions
  47.       of DOS COPY and DELETE commands to make make moving files
  48.       very easy.  In addition to just moving files, PMOVE also
  49.       allows selection criteria to be specified to better qualify
  50.       the files to be moved.
  51.  
  52.       PMOVE automatically determines the environment the move is
  53.       requested for and then determines if the data must be moved
  54.       or if the file can be moved by renaming.  Moving with rename
  55.       is allowed if the move is to another directory on the same
  56.       disk device.  If a rename move can be done, it is much faster
  57.       than moving the data, it helps to keep from fragmenting disk
  58.       free space, and allows very large files to be moved between
  59.       directories when they could not normally be moved with DOS
  60.       COPY because of insufficient space.
  61.  
  62.       PMOVE is developed to allow standard DOS wildcard pathnames
  63.       in the source file specifications, and standard pathnames
  64.       for the target directory specification.  Wildcards are not
  65.       allowed for the target path specification.
  66.  
  67.       PMOVE attempts to anticipate your needs and help you accomplish
  68.       your task.  For instance, if PMOVE determines that the target
  69.       directory name does not exist, it will ask you if it is to be
  70.       created.  If you respond <YES>, the directory will be created
  71.       for you.
  72.  
  73.       I have tried to develop PMOVE with all the features normally
  74.       needed for this kind of utility.  I hope you find what you
  75.       need and that the utility is of use to you.
  76.  
  77.       For an immediate command summary, enter the PMOVE command without
  78.       any parameters.  A help screen will be displayed.
  79.  
  80.  
  81.                                                                 Page  2
  82.       What PMOVE does:
  83.       ----------------
  84.  
  85.         **  Moves files by copying them or renaming them to the new
  86.             location.
  87.  
  88.         **  Deletes the original file if needed and /C is NOT specified.
  89.  
  90.         **  Creates target directory if needed.
  91.  
  92.         **  Makes sure the DOS archive flag is set correctly for each
  93.             file as it is moved.
  94.  
  95.         **  Preserves the DOS date and time for each file moved.
  96.  
  97.         **  Allows user to pause move at any time by pressing any
  98.             keyboard key.  Once stopped, the move can be terminated
  99.             by pressing escape.
  100.  
  101.         **  Provides file selection and processing control options
  102.             to tailor the move process to your own needs.
  103.  
  104.         **  Allows commands to be tested so you may be sure
  105.             that commands are specified as you desire.
  106.  
  107.         **  Copy updated files to a special disk or directory.
  108.  
  109.         **  If there is not sufficient space on the current target
  110.             disk, PMOVE will allow you to place another disk in the
  111.             drive and continue processing.  This allows you to easily
  112.             move groups of files larger than disk size to other
  113.             computers.
  114.  
  115.         **  Start with a specific file in a directory.
  116.  
  117.         **  End with a specific file in a directory.
  118.  
  119.         **  Process files based on the date stored in its directory
  120.             entry.
  121.  
  122.         **  Warns you before overlaying a file unless specific
  123.             parameters indicating otherwise are specified.
  124.  
  125.         **  Checks target disk for available space before starting
  126.             to move files.  This prevents time from being wasted
  127.             when the move will not be able to complete.
  128.  
  129.                                                                 Page  3
  130.  
  131.       Command Mode Parameters
  132.       -----------------------
  133.  
  134.       PMOVE allows several command parameter switches to be specified
  135.       to qualify the move criteria.  All these parameters are
  136.       optional.  The PMOVE command is used like DOS COPY except for
  137.       these switches.  The command format and switch parameters are
  138.       described below.  A quick review of command parameters is always
  139.       available by entering the PMOVE command without any parameters.
  140.  
  141.  
  142.       COMMAND FORMAT:
  143.  
  144.       PMOVE from_file_spec [to_file_spec] [ (/ switches) ]
  145.  
  146.  
  147.       [from}    Enter the DOS file specification for the directory and
  148.                 file names to be moved.
  149.  
  150.                 The filename portion of the file specification may
  151.                 contain wildcard characters documented by DOS (* and
  152.                 ?).
  153.  
  154.  
  155.       [to]      Enter the DOS file specification for the directory and
  156.                 filename to be copied to.  If the "to" specification
  157.                 is not entered, files will be moved to the current
  158.                 directory.
  159.  
  160.  
  161.       /N        Only move files that do not already exist on the target
  162.                 directory. (New files).  If the file already exists,
  163.                 no attempt will be made to move it and no warning
  164.                 message will be printed.
  165.  
  166.  
  167.       /U        Only move files that do not exist on the target
  168.                 directory or duplicate filenames that are newer than
  169.                 their counterparts on the target directory or disk.
  170.  
  171.                 Use of this option results in the most current version
  172.                 of each selected file being at the target location.
  173.  
  174.  
  175.       /R        Replace any duplicate files on the target disk or
  176.                 directory regardless of their dates.
  177.  
  178.  
  179.       /E        Select and move only files that exist on both the "from"
  180.                 and "to" directories.  This causes all duplicate named
  181.                 files to be replaced.
  182.                                                                 Page  4
  183.  
  184.  
  185.       /T        Test the move process.  Use this switch when you
  186.                 would like to test the PMOVE command entered without
  187.                 actually moving any files or creating any directories.
  188.  
  189.                 Messages will indicate what will happen if the command
  190.                 is executed without the /T switch.
  191.  
  192.  
  193.       /P        Pause before each file is moved and ask for approval
  194.                 to process it.
  195.  
  196.  
  197.       /C        Copy only.  Do not delete the file after it is copied.
  198.  
  199.  
  200.       /M        Stop screen from scrolling from scrolling past the end
  201.                 without user intervention (MORE).
  202.  
  203.  
  204.       /A        Only select files that have the DOS archive attribute
  205.                 set.  This attribute is set by DOS whenever a file
  206.                 has been created or updated.  The attribute is reset
  207.                 by most backup facilities including the DOS BACKUP
  208.                 command.
  209.  
  210.  
  211.       /F:file   First.  Indicates that processing is not to start until
  212.                 the specified full filename is encountered in the
  213.                 scan of the directory.
  214.  
  215.                 This parameter is most useful in restarting a
  216.                 move or copy from a location where it had
  217.                 previously left off.
  218.  
  219.  
  220.       /L:file   Last.  Indicates that processing is to stop after
  221.                 the specified full filename is encountered in the
  222.                 scan of the directory. The file specified will be
  223.                 processed if it matches selection criteria.
  224.                                                                 Page  5
  225.       /D:[(]xxx Date.  Select files based on the relationship between
  226.          [)]    their last update date and the date specified.  This
  227.          [=]    parameter includes a date or number of days value.
  228.                 It may also contain a modifier that reverses or
  229.                 modifies the use of the date specified.
  230.  
  231.                 When xxx contains a date the date is compared to the
  232.                 last update date of the file.  The last update date
  233.                 of the file is the date contained in its directory
  234.                 entry.  The file is selected if the condition specified
  235.                 by the condition modifier is met.  The condition
  236.                 modifier meanings are:
  237.  
  238.                   '(' =  Select files whose date is older than the
  239.                          date specified.
  240.  
  241.                   ')' =  Select files whose date is newer than the
  242.                          date specified.
  243.  
  244.                   '=' =  Select files whose date is equal to the date
  245.                          specified.
  246.  
  247.                 If the condition modifier is not specified, ')' is
  248.                 assumed.
  249.  
  250.                 Date values may be specified in any of the following
  251.                 formats:
  252.  
  253.                     MM/DD/YY   MM-DD-YY   DDMMMYY
  254.                     12/31/80   12-31-80   31DEC80
  255.  
  256.                 If xxx contains a numeric value, that positive number
  257.                 is used to calculate a date value a number of days
  258.                 prior to the current date.  Then that date is used
  259.                 as in the calculation above.
  260.  
  261.                 Example:
  262.  
  263.                 /D:(1JAN86  - Process files updated before 1JAN86
  264.                 /D:)1JAN86  - Process files updated after 1JAN86
  265.                 /D:=1JAN86  - Process files updated 1JAN86
  266.                 /D:(5  - Process files modified prior to 5 days ago
  267.                 /D:)5  - Process files modified within the last 5 days
  268.                 /D:=5  - Process files modified 5 days ago
  269.                                                                 Page  6
  270.  
  271.  
  272.       Examples:
  273.  
  274.       1.  Move all files in directory \GEN to directory \SAVE
  275.  
  276.              PMOVE \GEN \SAVE
  277.  
  278.  
  279.       2.  Copy all files in directory \GEN to directory \SAVE
  280.  
  281.              PMOVE \GEN \SAVE /C
  282.  
  283.  
  284.       3.  Copy all *.BAT files from current directory to \SAVE
  285.  
  286.              PMOVE *.BAT \SAVE
  287.                    or
  288.              PMOVE *.BAT \SAVE\*.*
  289.  
  290.  
  291.       4.  Move all files in current directory to disk in drive A:
  292.  
  293.              PMOVE *.* A:
  294.  
  295.                                                                 Page  7
  296.  
  297.  
  298.       Registering PMOVE
  299.       -----------------
  300.  
  301.       PMOVE is distributed under the Shareware concept.  This makes it
  302.       available for anyone to try without obligation.  If you decide it
  303.       is useful and want to keep it, I ask that you register your use
  304.       of it.  This will allow for continued support and maintenance of
  305.       the program and will help to encourage that more quality software
  306.       be made available through this channel.   We require all
  307.       corporate and government users of this utility register their
  308.       copies.
  309.  
  310.       The program registration fee is $15.  Make checks payable to, and
  311.       send to:
  312.  
  313.                       Norm Patriquin
  314.                       P.O. Box 8308
  315.                       San Bernardino, CA   92412
  316.  
  317.       The registration charge is a one time fee that entitles you to
  318.       all future versions of the product.  These may either be obtained
  319.       from normal Shareware sources or directly from me.  Any
  320.       organization ordering more than 100 copies is also entitled to
  321.       telephone support and will be given the technical support number.
  322.  
  323.       The following is a form that may be used to register PMOVE.
  324.  
  325.                                                                 Page  8
  326.  
  327.  
  328.  
  329.                               PMOVE Registration
  330.                                  Version 1.0
  331.  
  332.  
  333.  
  334.       Please Register PMOVE to the following name.  We will use ____
  335.       copies of the program and have enclosed $15 for each copy to be
  336.       used.
  337.  
  338.  
  339.       Name: __________________________________________________
  340.  
  341.       Company: _______________________________________________
  342.  
  343.       Address: _______________________________________________
  344.  
  345.                _______________________________________________
  346.  
  347.       City: ______________________________  State: ___________
  348.  
  349.       Zip:  ______________________
  350.  
  351.       I obtained my copy of PMOVE from: ____________________________
  352.  
  353.       If BBS indicate name and number please._________________________
  354.  
  355.       ________________________________________________________________
  356.  
  357.  
  358.       Please register the software under the following name:
  359.  
  360.       ____________________________________________________
  361.  
  362.  
  363.  
  364.               Make checks payable to, and send to:
  365.  
  366.                       Norm Patriquin
  367.                       P.O. Box 8308
  368.                       San Bernardino, CA  92412
  369.                                                                 Page  9
  370.                           P M O V E
  371.  
  372.       Problems and Maintenance
  373.       ------------------------
  374.  
  375.       I welcome all comments or enhancement suggestions. Please
  376.       document each item clearly and provide printed examples if
  377.       possible.  Please be sure to include this form with all requests,
  378.       it will help to make sure we can provide you with the best
  379.       possible service.
  380.  
  381.       You may also leave messages for me on the BIG TIME BBS located
  382.       at the following phone number:  714/381-3370.
  383.  
  384.  
  385.       Name: __________________________________________________________
  386.  
  387.       Company: _______________________________________________________
  388.  
  389.       Address: _______________________________________________________
  390.  
  391.                _______________________________________________________
  392.  
  393.       City: __________________________________  State: _______________
  394.  
  395.       Zip: ______________________________
  396.  
  397.       Telephone: _______ / ________________________ (Home / Work)
  398.  
  399.  
  400.       Date: _________________________
  401.  
  402.       Description of problem or enhancement:
  403.  
  404.       ________________________________________________________________
  405.  
  406.       ________________________________________________________________
  407.  
  408.       ________________________________________________________________
  409.  
  410.       ________________________________________________________________
  411.  
  412.  
  413.       Suggested solution:
  414.  
  415.       ________________________________________________________________
  416.  
  417.       ________________________________________________________________
  418.                                                                 Page 10
  419.  
  420.       Other Utilities by Norm Patriquin
  421.       ---------------------------------
  422.  
  423.       Following is a description of PSEARCH, another utility
  424.       I make available to users.
  425.  
  426.       PSEARCH version 2.0    by    Norm Patriquin           April 1986
  427.       ----------------------------------------------------------------
  428.  
  429.  
  430.       How PSEARCH can save you time ---
  431.  
  432.       PSEARCH is a file and text find utility for use on the IBM
  433.       personal computer.  It is not only a good technicians tool, it
  434.       provides an easy to use, quick, way for users to locate files
  435.       when their name has been forgotten or misplaced.  This document
  436.       describes how PSEARCH can benefit users with various different
  437.       needs.
  438.  
  439.  
  440.       Word Processing Users
  441.       ---------------------
  442.  
  443.       PSEARCH has the ability to locate a file by words in its
  444.       contents.  This provides you with a facility to locate your word
  445.       processing files by keywords or other information.  The following
  446.       command will print the names of all files that contain the name
  447.       "Jones":
  448.  
  449.             PS *.*/t:jones
  450.  
  451.       If you do not have keywords to search for, you can examine the
  452.       contents of files to locate a file needed.  PSEARCH will scan the
  453.       files matching the wildcard specification and show you the first
  454.       words in the file.  By looking at these words you will easily be
  455.       able to identify the contents of each one.
  456.  
  457.       The next command will produce a report of the contents of all
  458.       files.  Only one line of words from each file will be displayed.
  459.       This line usually will contain the title of the document or a
  460.       letter or memo heading that will identify the document.
  461.  
  462.             PS *.*/s/d/p
  463.  
  464.  
  465.                                                                 Page 11
  466.       Spreadsheet Users
  467.       -----------------
  468.  
  469.       How many times have you forgotten the name of a spreadsheet you
  470.       created or needed to locate a spreadsheet from another users
  471.       files.  After awhile names are very poor identifiers for files.
  472.       PSEARCH can examine spreadsheet files and locate specific file
  473.       names based on keywords found in the spreadsheet file.  The
  474.       following command will show the names of all spreadsheet files
  475.       that contain the word "budget".  The example below refers to all
  476.       files with extension .WKS.  This is for 123 spreadsheet files.
  477.  
  478.              PS *.WKS/t:budget
  479.  
  480.       If you do not have a keyword to look for, you can examine the
  481.       contents of worksheet files to determine what they are.  PSEARCH
  482.       will look for the first text data in the spreadsheet file and
  483.       show you that information.  Since the first text in the file is
  484.       usually title or the column header information, it is easy to
  485.       identify the contents of the file.
  486.  
  487.       The following command example will cause PSEARCH to show the text
  488.       contents of all files that satisfy the wildcard filename
  489.       criteria.  The /P (Pause) parameter will allow you to see more
  490.       than one line of text information of each file if desired.  You
  491.       will be prompted after each line of text is shown.
  492.  
  493.              PS *.WKS/f/s/p
  494.  
  495.  
  496.       Program Developers
  497.       ------------------
  498.  
  499.       PSEARCH's ability to scan for text in files can greatly reduce
  500.       the time developers use to locate specific parts of code or
  501.       references to field variables.  PSEARCH can search for any
  502.       specific string, complete words, word prefixes, or word suffixes.
  503.       Once files are found, you can automatically build DOS commands to
  504.       be executed against them.  PSEARCH's ability to locate complete
  505.       words is invaluable in finding references to short variable names
  506.       that are also likely to be found as parts of other words.  This
  507.       makes it more powerful than most text search facilities found in
  508.       editors.
  509.  
  510.  
  511.                                                                 Page 12
  512.       General Disk File Maintenance
  513.       -----------------------------
  514.  
  515.       In addition to PSEARCH's ability to search for text in files, it
  516.       also contains the most complete file find facility to be found.
  517.       PSEARCH can search across multiple directories, even multiple
  518.       disk drives, for file names.  The search can be limited to
  519.       specified wildcard names and also be limited to the other
  520.       following criteria:
  521.  
  522.               ---     File Attribute UPDATED, READONLY, SYSTEM
  523.               ---     FIles greater than nnn days old
  524.               ---     Files less than nnn days old
  525.  
  526.       In addition to searching for files recorded in DOS directories,
  527.       PSEARCH can also find filenames that are stored in archive files
  528.       created by the ARC utility by System Enhancement Associates.
  529.       This allows you to quickly locate files that have been archived.
  530.       In addition,  through, PSEARCH's DOS command execution, you may
  531.       automatically cause PSEARCH to unarchive the file.
  532.  
  533.       Since PSEARCH can execute any DOS command against files selected,
  534.       it can perform unlimited file maintenance activities.  For
  535.       example, the following command causes PSEARCH to archive all
  536.       files with a .BAS extension that is also over 30 days old:
  537.  
  538.               PS *.BAS/f/a/o:30/x:arc m BAS.ARC #
  539.  
  540.