C
C
Coline2018-08-13 18:33:09
reverse engineering
Coline, 2018-08-13 18:33:09

How to get into the console?

The bottom line is this - there is a program in C ++ (the source code of which I do not have). When the program starts, the GUI and console are launched. The most basic changes that the user makes are logged to the console. Closing the GUI will close the console, closing the console will close the GUI. Of course, there is no way to write commands to the console.
The task is to write a program in C# that would duplicate this log to a file. Why do I need this - I want to collect statistics. I do not quite understand where to start, which libraries to pay attention to.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2018-08-13
@Coline

https://www.codeproject.com/Articles/18577/How-to-...

F
freeExec, 2018-08-13
@freeExec

You launch a new process with the program from your .net application. In the process settings, you can reassign its output streams and log them to a file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question