❔ Help with .cmd and richtextbox

How do I make it so when I execute a .cmd file it takes the output from the terminal and puts it into a richTextBox
6 Replies
XYZ
XYZ2y ago
Stack Overflow
Process.start: how to get the output?
I would like to run an external command line program from my Mono/.NET app. For example, I would like to run mencoder. Is it possible: To get the command line shell output, and write it on my tex...
XYZ
XYZ2y ago
I suggest starting the process then calling process.WaitForExit. After that, you can use process.StandardOutput.ReadToEnd(); to get all of the output text.
blueray_dvd
blueray_dvdOP2y ago
I am a beginner to c#. Can you give me something that is a little beginner friendly?
Angius
Angius2y ago
The answer on Stack Overflow is as beginner-friendly as possible There is no other way of getting output from a process
kocha
kocha2y ago
You can use a library like https://github.com/Tyrrrz/CliWrap if you don‘t want to use the (in my opinion badly designed) Process class.
GitHub
GitHub - Tyrrrz/CliWrap: Library for running command-line processes
Library for running command-line processes. Contribute to Tyrrrz/CliWrap development by creating an account on GitHub.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?