I am writing a C ++ program that runs commands from the DOS operating system using the system () command. So far so good that I think. But how can I turn off the screen update in the console window that appears so as not to see the thousands of messages received.
Or alternatively, how can I dump these messages elsewhere .... i.e. Is there a more elegant way to handle this, and not just turn off the screen? thank.
To avoid repeating echoes, put this at the top of the script:
@echo off
, . , :
nameofcommand.exe params > nul 2 > & 1
, , ( ..) , , .
. . echo this goes to a file > log.txt echo .
echo this goes to a file > log.txt
.
_popen, .
_popen
, , ... , , , , , , 7 , , . , , 0x0, ... , , .
... SLaks ...
, , , .
Source: https://habr.com/ru/post/1729490/More articles:Database folder only if backup is successful - sqlWhat is a reasonable timeout for acquiring a GPS fix? - geolocationMatlab Simulink area log or saved data - matlabHow to convert back vertices to GLSL when creating shadow volume - shadowPHP header ("Location:") inside a function redirects without a call function - redirectGenerating and Representing ASP.NET Dynamic Forms - c #Linq to Nhibernate Bulk Update Query Equivalent? - linqExtract items from a list based on an object type - javasplint целая программа со сложным процессом сборки - cUsing STL Allocator with STL vectors - c ++All Articles