C
C#12mo ago
blueray_dvd

❔ 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
Relyt648
Relyt64812mo 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...
Relyt648
Relyt64812mo 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_dvd12mo ago
I am a beginner to c#. Can you give me something that is a little beginner friendly?
Angius
Angius12mo ago
The answer on Stack Overflow is as beginner-friendly as possible There is no other way of getting output from a process
chef drone builder
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
Accord12mo 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.