home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / pcwiz01.arj / REPLACE.INS < prev    next >
Text File  |  1991-09-25  |  2KB  |  74 lines

  1. REPLACE     Reads the names of all files in the TARGET
  2.             directory and compares them with names of
  3.             the files in the SOURCE. Will only update
  4.             (REPLACE) those files that MATCH. (The /A
  5.             switch allows for ADDing new files.)
  6.  
  7. Format:     REPLACE [D:Path]SourceFile [Dest D:\Path]
  8.             [/A][/P][/R][/S][/W]
  9.  
  10.  
  11.   /A   ADDS files from the SOURCE location that do not
  12.        have MATCHING filenames on the TARGET.
  13.  
  14.   /P   PROMPTs the user for a response of [Y] prior to
  15.        completing the requested REPLACE operation.
  16.  
  17.   /R   allows files that are marked as READ-ONLY on the
  18.        TARGET directory to be REPLACED.
  19.  
  20.   /S   searches through all SUBDIRECTORIES on TARGET
  21.        for files that match the REPLACE criteria and
  22.        then performs the requested REPLACE action(s).
  23.  
  24.   /W   WAITS for the user to place a new diskette in
  25.        the TARGET drive before executing the command.
  26.  
  27. Example:          REPLACE \123\*.* A:
  28.  
  29.    REPLACEs ALL files on the diskette in drive A that
  30.    have filenames that MATCH those that are contained
  31.    in the \123 directory of the CURRENT drive.
  32.  
  33.  
  34. Example:        REPLACE \123\*.WK1 A: /R
  35.  
  36.    REPLACEs all files with a .WK1 extension on the
  37.    diskette in drive A: that MATCH the filenames
  38.    contained in the \123 directory on CURRENT drive.
  39.    The /R switch ensures that matching READ-ONLY
  40.    files are also REPLACEd on A:.
  41.  
  42.  
  43. Example:      REPLACE \123\*.WK1 A: /R /W
  44.  
  45.    Same as above, except the system will display a
  46.    PROMPT that causes the system to WAIT until you
  47.    ensure that drive A: contains proper diskette.
  48.  
  49. Example:    REPLACE A:*.TXT C:\WP\DATA1 /R /S /W
  50.  
  51.    REPLACEs all *.TXT files in the C:\WP\DATA1
  52.    directory (AND the *.TXT files in any of it's
  53.    lower subdirectories) that MATCH the names of
  54.    the *.TXT files contained on the diskette in
  55.    drive A.
  56.  
  57.  
  58. Example:     REPLACE \123\*.WK1 A: /A
  59.  
  60.    ADDs ALL files with extension of .WK1 contained
  61.    in the \123 directory of the CURRENT drive that
  62.    do NOT already exist on the diskette in drive A.
  63.    (e.g., MATCHING files not found.) Existing files
  64.    are NOT updated/replaced.)
  65.  
  66.  
  67.  
  68. [*]  Do NOT use the /A and /S switches together.
  69.  
  70. [*]  Be cautious when using the /S switch because
  71.    it will also REPLACE all files on the TARGET,
  72.    including those in ALL lower subdirectories,
  73.    that match the files on the source.
  74.