Skip to content

Update xcopy.md - overwrite prompting #7222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion WindowsServerDocs/administration/windows-commands/xcopy.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ Xcopy <Source> [<Destination>] [/w] [/p] [/c] [/v] [/q] [/f] [/l] [/g] [/d [:MM-
|/o|Copies file ownership and discretionary access control list (DACL) information.|
|/x|Copies file audit settings and system access control list (SACL) information (implies **/o**).|
|/exclude:FileName1[+[FileName2]][+[FileName3]( \)]|Specifies a list of files. At least one file must be specified. Each file will contain search strings with each string on a separate line in the file. When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying the string **obj** will exclude all files underneath the directory **obj** or all files with the **.obj** extension.|
|/y|Suppresses prompting to confirm that you want to overwrite an existing destination file.|
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear whether it will auto overwrite or auto skip

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaning, just suppressing the prompt could mean it will just skip the file entirely without asking.
It's not clear that it is a force.

|/y|Overwrites any existing destination file without prompting.|
|/-y|Prompts to confirm that you want to overwrite an existing destination file.|
|/D|Skips all existing destination files without prompting.|
|/z|Copies over a network in restartable mode.|
|/b|Copies the symbolic link instead of the files. This parameter was introduced in Windows Vista®.|
|/j|Copies files without buffering. Recommended for very large files. This parameter was added in Windows Server 2008 R2.|
Expand Down