REPLACE+Replacing Selected FilesAllows you to copy or add files selectively to target drives
and directories.
VERSION
PC-DOS 3.2+
MS-DOS equivalent: REPLACE (3.2+)
TYPE
External
SYNTAX
[d:][path] REPLACE [sd:][spath]sfilename
[td:][tpath] [P][R][W]
OPTIONS
[d:][path] Specifies the drive letter and
directory that contain the
REPLACE command file.
[sd:][spath]sfilename Specifies the source file(s)
to be copied.
[td:][tpath] Specifies the target drive and
directory.
/A Copies all files from the
source that do not exist on
the target.
/P Prompts for each file
replacement.
/D Copies only those files newer
than the files on the target.
/R Replaces read-only files on
the target.
/S Searches all the directories
on the target for files that
match the source file name.
/W Prompts for insertion of a
target disk before replacing
begins.
REPLACE allows you to selectively copy from a source disk
files that do not already exist on the target disk or copy files
that exist on both disks but are in an updated version on the
source disk.
EXAMPLES
REPLACE B:\*.* C:\REPORTS/A
copies all files in the root directory on drive B that are not
already in the REPORTS directory of drive C.
REPLACE A:*.TXT C:\TEXTP
adds all files with a .TXT extension on drive A to the TEXT
directory on drive C if they are not there already. You will be
prompted to confirm each file to be copied.
REPLACE A:*.TXT C:\TEXT/D
copies only those files with a .TXT extension on drive A that are
newer than the files in the TEXT directory on drive C.
MESSAGES
Add d:\path\filename?
Enter Y to add the file to the target.
No files added
All the files on the source already exist on the target. No
further action is required.
No files found
No files described in the argument were found on the source. No
further action is required.
NOTE
The /A and /S options cannot be used together.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
ATTRIB Command
COPY Command
DEL (DELETE) and ERASE Commands
DIR Command
PRINT Command
RENAME EN) Command
SHARE Command
TYPE Command
VERIFY Command
XCOPY Command
file: /Techref/DOS/command/replace.htm, 3KB, , updated: 1999/2/20 10:24, local time: 2024/11/22 04:28,
18.216.250.143:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/DOS/command/replace.htm"> DOS command replace</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.