Don't query on batch files.
authorHartmut Birr <osexpert@googlemail.com>
Thu, 11 Aug 2005 20:39:28 +0000 (20:39 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Thu, 11 Aug 2005 20:39:28 +0000 (20:39 +0000)
svn path=/trunk/; revision=17309

reactos/subsys/system/cmd/copy.c

index 957a1da..099f471 100644 (file)
@@ -537,6 +537,13 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
                }
        }
  
+       /* keep quiet within batch files */
+       if (bc != NULL)
+        {
+               dwFlags |= COPY_NO_PROMPT;
+               dwFlags &= ~COPY_PROMPT;
+        }
+
        if(nFiles < 1)
        {
                /* There is not enough files, there has to be at least 1 */