問題:
I would like to run an external command line program from my Mono/.NET app.我想從我的 Mono/.NET 應用程序運行外部命令行程序。 For example, I would like to run mencoder .例如,我想運行mencoder 。 Is it possible:是否有可能:
- To get the command line shell output, and write it on my text box?要獲取命令行 shell 輸出,並將其寫在我的文本框中?
- To get the numerical value to show a progress bar with time elapsed?要獲取數值以顯示經過時間的進度條?
解決方案:
參考一: https://stackoom.com/question/I0WO參考二: Process.start: how to get the output?