Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
69194ce0
Commit
69194ce0
authored
Feb 26, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Feb 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Add rd /s support.
parent
3232e61b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
builtins.c
programs/cmd/builtins.c
+19
-1
No files found.
programs/cmd/builtins.c
View file @
69194ce0
...
...
@@ -35,6 +35,7 @@
#define WIN32_LEAN_AND_MEAN
#include "wcmd.h"
#include <shellapi.h>
void
WCMD_execute
(
char
*
orig_command
,
char
*
parameter
,
char
*
substitution
);
...
...
@@ -633,7 +634,24 @@ void WCMD_remove_dir (void) {
WCMD_output
(
"Argument missing
\n
"
);
return
;
}
if
(
!
RemoveDirectory
(
param1
))
WCMD_print_error
();
/* If subdirectory search not supplied, just try to remove
and report error if it fails (eg if it contains a file) */
if
(
strstr
(
quals
,
"/S"
)
==
NULL
)
{
if
(
!
RemoveDirectory
(
param1
))
WCMD_print_error
();
/* Otherwise use ShFileOp to recursively remove a directory */
}
else
{
/* Do the delete */
SHFILEOPSTRUCT
lpDir
;
lpDir
.
hwnd
=
NULL
;
lpDir
.
pTo
=
NULL
;
lpDir
.
pFrom
=
param1
;
lpDir
.
fFlags
=
FOF_SILENT
|
FOF_NOCONFIRMATION
|
FOF_NOERRORUI
;
lpDir
.
wFunc
=
FO_DELETE
;
if
(
SHFileOperationA
(
&
lpDir
))
WCMD_print_error
();
}
}
/****************************************************************************
...
...
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