Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach an existing process output to console control #26

Open
FrancoTampieri opened this issue Jan 13, 2017 · 3 comments
Open

Attach an existing process output to console control #26

FrancoTampieri opened this issue Jan 13, 2017 · 3 comments

Comments

@FrancoTampieri
Copy link

Hi,

I'm developing a WPF application, and I would like to know If I can attach the console output of that application to the Console control.

For example I would like to open a new windo with a button and show in that window the consolecontrol with the Nlog output of the main application.

Regards

Franco

@feldrim
Copy link

feldrim commented Feb 2, 2017

This issue is what I was searching on Stackoverflow and Google. I'm pretty surprised.

My attempt was adding a troubleshooting button on my own WPF window component that opens a new console window. So that I can see the trace output when I interact with the window. So that I -or help desk guy- can recreate the error in the help desk ticket without needing to open the solution in VS. Because help desk can't and shouldn't. I need to help them diagnose better and give the development more meaningful insight to help solving the issue. And if it is not a bug but a user fault or a user fault that occurs because of bad UI, they can help the user asap and give us a suggestion to develop the UI.

@imtrobin
Copy link

Am interested too, did you figure it out?

@pearlxcore
Copy link

pearlxcore commented Feb 21, 2019

string arg1 = "myprogram.exe";
string arg2 = "-h";
console.StartProcess(arg1, arg2);

or

console.StartProcess("myprogram.exe", null);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants