REPLACE

Posted On 2007-04-24 by FortyPoundHead
Keywords: Command Reference
Tags: Windows Commandline Windows
Views: 1579


Replace or update one file with another

Syntax
REPLACE Source_PathName Destination_path [/A] [/P] [/R] [/W]
REPLACE Source_PathName Destination_path [/P] [/R] [/S] [/W] [/U]
Key
path : The folder where files are to be replaced.
/A : Add any missing files.
/P : Prompt for confirmation (each file)
/R : Replace even Read-only files
/S : Include all subfolders of the destination.
/W : Wait for you to insert a floppy disk.
/U : Replace (update) only files that are older than the source.Limitations:

When replacing in all subdirectories (/S ) you cannot ADD files (/A) or restrict to replacing older files (/U)


About the Author

FortyPoundHead has posted a total of 1974 articles.


Comments On This Post

No comments on this post yet!


Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:54.234.233.48

Before you can post, you need to prove you are human. If you log in, this test goes away.




Code Links