0
Guys, here’s the deal. I have an app that works on a command line. This application takes parameters per command line, e.g.: program.exe [parameters] I want to make an interface where I run this application by passing the commands and capturing what the application is displaying in command line, and show it in a txtLabel. The part about passing the commands and running the app I know how to do. What I can’t get is to capture what’s coming out in a command line and display on a label.
I was thinking of making the application in cmd save the output in . txt and with the interface in c#, read this . txt and display on screen. But I believe not to be ideal.
In my case I am running youtube-dl and want to capture the output of it constantly and show on a label.
It would be easier for you to remove the business rule to another layer and simply build your new interface in a new Windowsforms, Web project or whatever you want.
– Leandro Angelo
Have you tried with the class
Process
?– Ricardo Pontual
I’ll look for her methods.
– João Ricardo Côre Dutra