mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
Keep DEL quiet when called from a batch file.
svn path=/trunk/; revision=754
This commit is contained in:
parent
6758f479ef
commit
dbbb7e41f0
1 changed files with 9 additions and 1 deletions
|
@ -26,6 +26,9 @@
|
||||||
*
|
*
|
||||||
* 30-Mar-1999 (Eric Kohl <ekohl@abo.rhein-zeiung.de>)
|
* 30-Mar-1999 (Eric Kohl <ekohl@abo.rhein-zeiung.de>)
|
||||||
* Added quiet ("/Q"), wipe ("/W") and zap ("/Z") option.
|
* Added quiet ("/Q"), wipe ("/W") and zap ("/Z") option.
|
||||||
|
*
|
||||||
|
* 06-Nov-1999 (Eric Kohl <ekohl@abo.rhein-zeiung.de>)
|
||||||
|
* Little fix to keep DEL quiet inside batch files.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -39,6 +42,7 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "cmd.h"
|
#include "cmd.h"
|
||||||
|
#include "batch.h"
|
||||||
|
|
||||||
|
|
||||||
#define PROMPT_NO 0
|
#define PROMPT_NO 0
|
||||||
|
@ -227,6 +231,10 @@ INT CommandDelete (LPTSTR cmd, LPTSTR param)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* keep quiet within batch files */
|
||||||
|
if (bc != NULL)
|
||||||
|
dwFlags |= DEL_QUIET;
|
||||||
|
|
||||||
/* check for filenames anywhere in command line */
|
/* check for filenames anywhere in command line */
|
||||||
for (i = 0; i < args; i++)
|
for (i = 0; i < args; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue