This article is a mirror article of machine translation, please click here to jump to the original article.

View: 39976|Reply: 5

[WinForm] winform executes other exes with startup parameters and gets the return value

[Copy link]
Posted on 5/13/2016 4:36:43 PM | | | |
Generally speaking, the idea is that A.exe execute the B.exe with parameters, and then, after the execution is completed, B.exe return the content to the A.exe, and then A.exe to get the data.

First, we B.exe set up execution with startup parameters.





A.exe need to bring the start parameters, execute the B.exe, B also needs to return data, how to return it?



Above, I will demonstrate a little code from B.exe.

And how A.exe execute B.exe???



Haha, everyone should understand???? B.exe enter success, A.exe will end the process of B and kill it.

People will ask, how to not let B.exe automatically withdraw??????



I tried 2 of the above 3 types of withdrawal, but none of them worked, and they all caused B.exe not responding!!

Therefore, I can only let A.exe kill the process, which is also an opportunistic way!

Here's what A.exe got from B.exe.






Previous:How to fix two errors in c# with geckofx
Next:C# WinForm, a method to hide the main form
Posted on 5/19/2016 2:37:58 PM |
This method is good for UPdata
Posted on 2/17/2022 10:59:53 PM |
Full display to improve the quality of reply posts is the obligation of every member! , I can't see anything
Posted on 2/18/2022 10:38:45 AM |

Full display to improve the quality of reply posts is the obligation of every member!
Posted on 3/24/2022 10:41:34 PM |
Learn to learn
Posted on 3/25/2022 1:36:33 PM |
Winform executes other exes with startup parameters
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com