Answer the question
In order to leave comments, you need to log in
How to disable the output of command execution in the console?
Hello! I am writing a console application in C ++, and I had this problem:
When my program executes the command: system("copy .\example\*.* .\");
(For example), then a lot of unnecessary lines are output to the console, while closing the necessary output, they say N files were copied and all the names of the files that were copied. @echo off
disables only the output of the command itself, but not the result of its work. @copy ...
also gives no result. Help me please. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question