" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#008000" VLINK="004000" ALINK="#00C000">

                            REPLACE COMMAND

Purpose: Replaces specified file(s).

Syntax: REPLACE [/U[PDATE]] [/N[EW]] [/P[ROMPT]] [/Q[UIET]]
        [/R[EVERSE]]
        source
        target

source ::= FILELIST
target ::= FILELIST

Type:   Internal command

Parameters:

/P[ROMPT]  - prompts for users confirmation for replacing a file.
/Q[UIET]   - suppresses output of diagnostic messages to the screen.
/U[PDATE]  - replaces only those files, that were are created later
             than target files.
/R[EVERSE] - reverses the action of the /UPDATE switch and
             is ignored if /UPDATE is absent.
/N[EW]     - copies only the files which are absent in the target.

     If neither /U nor /N switch is included in the command line, the system
assumes they are both present.

FILELIST ::= [parms]
             {
             [d:][path]file_name[.ext] |
             (FILELIST[,|+| ]...)      |
             @reference_file
             }

FILELIST  - defines the files to be replaced.
            (See INTERNAL DOS COMMAND ARGUMENTS for detailed description)

file_name       may contain wild card symbols ("?" and "*").
reference_file  is the name of a text file containing the command's
                parameters. It should be specified explicitly.
parms           are any combination of the control parameters for
                FILELIST or DIRLIST (see "INTERNAL DOS COMMAND ARGUMENTS").


Examples:
1. Deleting the FILE.BAT file from a diskette in the A: drive:

        A:\>REPLACE A:\FILE.BAT B:\

2. Using the prompt option:

        A:\>REPLACE /P file?.txt B:\

     If the /P (prompt) switch has been set, then the user will be prompted
before replacing any file:

        FILE1.TXT replace this file {Y/n/All yes/Quit}? _

     The user should reply with one of the following symbols and press
[Enter] afterwards. Pressing [Enter] alone is equal to replying "Y".

"Y" - the file is replaced and the interpreter moves on to the next one.
"N" - the file is NOT replaced and the interpreter moves on to the next one.
"A" - the file is replaced and all the remaining files will be replaced with
      no prompt whatsoever.
"Q" - quitting the command.

3. Using the subdirectories option:
The following command replaces all the *.asm files located an all
subdirectories of the C: disk:

        A:\>REPLACE /S C:\*.ASM A:\

WARNING! Improper or mischievous usage of the DELETE command may lead to
         loss of data on your disks! PhysTechSoft bears no liability
         whatsoever if such a damage or loss occurs.