home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Executing an external application....and getting its output
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mbuzina" data-source="post: 58383" data-attributes="member: 12382"><p>To find out when the called program has finished, you may use the Exited Event on the Process Object or use the WaitForExit Method (as in the code above). When you know that the first process is done (and maybe the result was acceptable, e.g. no errors) you may call the 2nd prog exactly the same way. </p><p></p><p>If you have 2 uses for the output of the program (e.g. one for showing the user and one for checking correctness or errors) you should consider using 2 delegates on the OutputDataReceived, one for each task. The more desktops are multi-processor environments, the more parallel we developers have to think.</p></blockquote><p></p>
[QUOTE="mbuzina, post: 58383, member: 12382"] To find out when the called program has finished, you may use the Exited Event on the Process Object or use the WaitForExit Method (as in the code above). When you know that the first process is done (and maybe the result was acceptable, e.g. no errors) you may call the 2nd prog exactly the same way. If you have 2 uses for the output of the program (e.g. one for showing the user and one for checking correctness or errors) you should consider using 2 delegates on the OutputDataReceived, one for each task. The more desktops are multi-processor environments, the more parallel we developers have to think. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Executing an external application....and getting its output
Contact us
RSS
Top
Bottom