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 text box?
- To get the numerical value to show a progress bar with time elapsed?
Best Answer
When you create your
Process
object setStartInfo
appropriately:then start the process and read from it:
You can use
int.Parse()
orint.TryParse()
to convert the strings to numeric values. You may have to do some string manipulation first if there are invalid numeric characters in the strings you read.