Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5f8f5eb5
Commit
5f8f5eb5
authored
Mar 29, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Mar 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcopy: Add support for /U (target must exist).
parent
fe890214
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
xcopy.c
programs/xcopy/xcopy.c
+7
-0
No files found.
programs/xcopy/xcopy.c
View file @
5f8f5eb5
...
...
@@ -50,6 +50,7 @@
#define OPT_NOCOPY 0x00000080
#define OPT_NOPROMPT 0x00000100
#define OPT_SHORTNAME 0x00000200
#define OPT_MUSTEXIST 0x00000400
#define MAXSTRING 8192
...
...
@@ -153,6 +154,7 @@ int main (int argc, char *argv[])
case
'T'
:
flags
|=
OPT_NOCOPY
|
OPT_RECURSIVE
;
break
;
case
'Y'
:
flags
|=
OPT_NOPROMPT
;
break
;
case
'N'
:
flags
|=
OPT_SHORTNAME
;
break
;
case
'U'
:
flags
|=
OPT_MUSTEXIST
;
break
;
case
'-'
:
if
(
toupper
(
argvW
[
0
][
2
])
==
'Y'
)
flags
&=
~
OPT_NOPROMPT
;
break
;
default:
...
...
@@ -458,6 +460,11 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec,
}
}
/* See if it has to exist! */
if
(
destAttribs
==
INVALID_FILE_ATTRIBUTES
&&
(
flags
&
OPT_MUSTEXIST
))
{
skipFile
=
TRUE
;
}
/* Output a status message */
if
(
!
skipFile
)
{
if
(
flags
&
OPT_QUIET
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment