blank.gif (43 bytes)

Church Of The
Swimming Elephant




Replace messages

As replace adds or replaces files, Windows NT displays their filenames on the screen. After the replace command is finished, Windows NT displays a summary line in one of the following formats:

nnn files added
nnn files replaced

no file added
no file replaced

Replacing files on floppy disks

If you are using floppy disks and need to switch disks during the replace operation, you can specify the /w switch so that replace will wait for you to switch disks, as necessary.

Limitations on replace

You cannot use the replace command to update hidden files or system files. For information about changing hidden and system attributes, see the attrib command.

Replace exit codes

The following list shows each exit code and a brief description of its meaning:

Replace successfully replaced or added the files.
Replace encountered an incorrect version of MS-DOS.
Replace could not find the source files.
Replace could not find the source or destination path.
The user does not have access to the files you want to replace.
There is insufficient system memory to carry out the command.
The user used the wrong syntax on the command line.

You can use the errorlevel parameter on the if command line in a batch program to process exit codes returned by replace. For an example of a batch program that processes exit codes, see the if command.

More Information About Replace

ntcmds00000001.gif Replace--Examples

ntcmds00000001.gif Replace


Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609