mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-28 17:19:47 +01:00
replace: add page (#4482)
This commit is contained in:
parent
766024c4a5
commit
ffa4c6b7f8
1 changed files with 37 additions and 0 deletions
37
pages/windows/replace.md
Normal file
37
pages/windows/replace.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
# replace
|
||||
|
||||
> Replace files.
|
||||
> See also: `robocopy`, `move`, `copy`, and `del`.
|
||||
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/replace>.
|
||||
|
||||
- Replace the destination file with the one from the source directory:
|
||||
|
||||
`replace {{path/to/file_or_directory}} {{path/to/destination}}`
|
||||
|
||||
- Add files to the destination directory instead of replacing existing files:
|
||||
|
||||
`replace {{path/to/file_or_directory}} {{path/to/destination}} /a`
|
||||
|
||||
- Interactively copy multiple files, with a prompt before replacing or adding a destination file:
|
||||
|
||||
`replace {{path/to/file_or_directory}} {{path/to/destination}} /p`
|
||||
|
||||
- Replace even read only files:
|
||||
|
||||
`replace {{path/to/file_or_directory}} {{path/to/destination}} /r`
|
||||
|
||||
- Wait for you to insert a disk before it replaces files (originally to allow inserting a floppy disk):
|
||||
|
||||
`replace {{path/to/file_or_directory}} {{path/to/destination}} /w`
|
||||
|
||||
- Replace all files in subfolders of the destination:
|
||||
|
||||
`replace {{path/to/file_or_directory}} {{path/to/destination}} /s`
|
||||
|
||||
- Replace only files in the destination directory which are older than the files in the source directory:
|
||||
|
||||
`replace {{path/to/file_or_directory}} {{path/to/destination}} /u`
|
||||
|
||||
- Display detailed usage information:
|
||||
|
||||
`replace /?`
|
Loading…
Reference in a new issue