I am writing a program in dot net that will execute scripts and command line programs using a Framework 2.0 Process object. I want to have access to the process screen buffers in my program. I researched this, and it seems to me that I need to access console stdout and stderr buffers. Does anyone know how this is achieved using managed code?
I think I need to use the AttachConsole and ReadConsoleOutput of the Windows console attached to the task in order to read the block of characters and attribute data from the console screen. I need to do this managed code.
See http://msdn.microsoft.com/en-us/library/ms684965(VS.85).aspx
, StandardError, StandardOutput StandardInput System.Diagnostics.Process.
MSDN .
, . , , stdout .
, ProcessStartInfo.UseShellExecute false, ProcessStartInfo.RedirectStandardInput true. StandardInput .
Source: https://habr.com/ru/post/1697017/More articles:OSX 10.5 Leopard Symbol Mangling with $ non_lazy_ptr - osx-leopardhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1697013/what-is-best-for-desktop-widgets-small-footprint-and-pretty-graphics&usg=ALkJrhhirWKFhl2c_ufIE5ZkWEahp3m3jwWhat is the correct term for "number of std deviations" from the average - statisticshow can you parse excel file (.xls) stored in varbinary in MS SQL 2005? - sqlHow to determine which version of Direct3D is installed? - c ++Элегантный метод для рисования почасовой гистограммы с данными временного интервала? - sqlHow does vxWorks handle two tasks with the same priority? - embeddedWhat was the name of the assembler Mac (68000)? - assemblyЕсть ли эквивалент класса Java Robot (java.awt.Robot) для Perl? - javaBest way to store only date in date field? - databaseAll Articles