❔ 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
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...
I suggest starting the process then calling process.WaitForExit. After that, you can use process.StandardOutput.ReadToEnd(); to get all of the output text.
I am a beginner to c#. Can you give me something that is a little beginner friendly?
The answer on Stack Overflow is as beginner-friendly as possible
There is no other way of getting output from a process
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.
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.