replace

Windows CMD · Files · available in the simulator

What it does

Replaces existing files or adds new files to a destination directory.

Syntax

replace origen [destino] [/a] [/p] [/r] [/s] [/u] [/w]

Options and parameters

  • /a

    Adds new files to the destination directory.

  • /s

    Includes subdirectories.

  • /u

    Replaces only files that are older than source files.

  • /p

    Prompts for confirmation.

  • /A

    Adds new files to the destination directory instead of replacing existing ones.

  • /P

    Prompts for confirmation before replacing each file.

  • /R

    Replaces read-only files as well as unprotected files.

  • /S

    Replaces files in all subdirectories of the destination directory.

  • /U

    Replaces only files that are older than the source files.

  • /W

    Waits for you to insert a disk before beginning.

Usage examples

  • replace fichero.txt windows
  • replace salida.txt windows /a
Practise replace

Related commands