mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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>)
|
||||
* 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"
|
||||
|
@ -39,6 +42,7 @@
|
|||
#include <ctype.h>
|
||||
|
||||
#include "cmd.h"
|
||||
#include "batch.h"
|
||||
|
||||
|
||||
#define PROMPT_NO 0
|
||||
|
@ -70,7 +74,7 @@ static BOOL ConfirmDeleteAll (VOID)
|
|||
LPTSTR p;
|
||||
|
||||
ConOutPrintf (_T("All files in directory will be deleted!\n"
|
||||
"Are you sure (Y/N)? "));
|
||||
"Are you sure (Y/N)? "));
|
||||
ConInString (inp, 10);
|
||||
|
||||
_tcsupr (inp);
|
||||
|
@ -227,6 +231,10 @@ INT CommandDelete (LPTSTR cmd, LPTSTR param)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* keep quiet within batch files */
|
||||
if (bc != NULL)
|
||||
dwFlags |= DEL_QUIET;
|
||||
|
||||
/* check for filenames anywhere in command line */
|
||||
for (i = 0; i < args; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue