Page 1 of 1

Suppress 1 file(s) copied.

Posted: 18 Jul 2020 03:18
by flywire
Can I suppress the `1 file(s) copied.` output from a single line command that prepending the output from another program?

Code: Select all

>echo demo > new.txt & copy /y new.txt demo.* & vol >> demo.txt
        1 file(s) copied.
(" echo demo > new.txt &" is only to create file for the demonstration.)

Re: Suppress 1 file(s) copied.

Posted: 18 Jul 2020 05:14
by aGerman
Not sure I got it. So you only want to redirect the output of the copy command to nul in order to get rid of it, right?

Code: Select all

>echo demo > new.txt & (>nul copy /y new.txt demo.*) & vol >> demo.txt
Steffen

Re: Suppress 1 file(s) copied.

Posted: 18 Jul 2020 05:35
by flywire
Don't worry, you got it. Much appreciated.

Actual use case starts at "(>nul copy ..."