Please someone to help me.How can i execute console .exe and get the result in string object
Printable View
Please someone to help me.How can i execute console .exe and get the result in string object
Look into using the static call System.Diagnostics.Process.Start to run the process. This call will return a Process object, from which you can get at the StandardOutput property. Then read your string from this stream.
"My own view on religion is that of Lucretius. I regard it as a disease born of fear and as a source of untold misery to the human race. I cannot, however, deny that it has made some contributions to civilization. It helped in early days to fix the calendar, and it caused Egyptian priests to chronicle eclipses with such care that in time they became able to predict them. These two services I am prepared to acknowledge, but I do not know of any others." -- Bertrand Russell (From his essay Has Religion Made Useful Contributions to Civilization?, first published in 1930)
...or you could raise events and fetch them in another application.