mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 19:00:46 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
42
tldr/windows/replace
Normal file
42
tldr/windows/replace
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# replace
|
||||
|
||||
> Replace files.
|
||||
> See also: `robocopy`, `move`, `copy`, and `del`.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/replace>.
|
||||
|
||||
- Replace the destination file with the one from the source directory:
|
||||
|
||||
`replace {{path oile_or_directory}} {{path o\destination_directory}}`
|
||||
|
||||
- Add files to the destination directory instead of replacing existing files:
|
||||
|
||||
`replace {{path oile_or_directory}} {{path o\destination_directory}} /a`
|
||||
|
||||
- Interactively copy multiple files, with a prompt before replacing or adding a destination file:
|
||||
|
||||
`replace {{path oile_or_directory}} {{path o\destination_directory}} /p`
|
||||
|
||||
- Replace even read only files:
|
||||
|
||||
`replace {{path oile_or_directory}} {{path o\destination_directory}} /r`
|
||||
|
||||
- Wait for you to insert a disk before it replaces files (originally to allow inserting a floppy disk):
|
||||
|
||||
`replace {{path oile_or_directory}} {{path o\destination_directory}} /w`
|
||||
|
||||
- Replace all files in subdirectories of the destination:
|
||||
|
||||
`replace {{path oile_or_directory}} {{path o\destination_directory}} /s`
|
||||
|
||||
- Replace only files in the destination directory which are older than the files in the source directory:
|
||||
|
||||
`replace {{path oile_or_directory}} {{path o\destination_directory}} /u`
|
||||
|
||||
- Display help:
|
||||
|
||||
`replace /?`
|
||||
Reference in New Issue
Block a user