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
cf872445
Commit
cf872445
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 /W (pause).
parent
60f325d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
xcopy.c
programs/xcopy/xcopy.c
+12
-0
No files found.
programs/xcopy/xcopy.c
View file @
cf872445
...
...
@@ -46,6 +46,7 @@
#define OPT_QUIET 0x00000008
#define OPT_FULL 0x00000010
#define OPT_SIMULATE 0x00000020
#define OPT_PAUSE 0x00000040
WINE_DEFAULT_DEBUG_CHANNEL
(
xcopy
);
...
...
@@ -130,6 +131,7 @@ int main (int argc, char *argv[])
case
'Q'
:
flags
|=
OPT_QUIET
;
break
;
case
'F'
:
flags
|=
OPT_FULL
;
break
;
case
'L'
:
flags
|=
OPT_SIMULATE
;
break
;
case
'W'
:
flags
|=
OPT_PAUSE
;
break
;
default:
WINE_FIXME
(
"Unhandled parameter '%s'
\n
"
,
wine_dbgstr_w
(
*
argvW
));
}
...
...
@@ -160,6 +162,16 @@ int main (int argc, char *argv[])
WINE_TRACE
(
"Dest Stem : '%s'
\n
"
,
wine_dbgstr_w
(
destinationstem
));
WINE_TRACE
(
"Dest Spec : '%s'
\n
"
,
wine_dbgstr_w
(
destinationspec
));
/* Pause if necessary */
if
(
flags
&
OPT_PAUSE
)
{
DWORD
count
;
char
pausestr
[
10
];
printf
(
"Press <enter> to begin copying
\n
"
);
ReadFile
(
GetStdHandle
(
STD_INPUT_HANDLE
),
pausestr
,
sizeof
(
pausestr
),
&
count
,
NULL
);
}
/* Now do the hard work... */
rc
=
XCOPY_DoCopy
(
sourcestem
,
sourcespec
,
destinationstem
,
destinationspec
,
...
...
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