[英]How to call an third party exe within my C# application?
I am writing an C# application.我正在编写一个 C# 应用程序。 In my application, I need to call a third party exe that reads a text input file generated by my application.在我的应用程序中,我需要调用第三方 exe 来读取我的应用程序生成的文本输入文件。 Then, the third party exe does calculation and writes calculation results into a text file so that I can read the results back for post-processing.然后,第三方 exe 进行计算并将计算结果写入文本文件,以便我可以读取结果进行后处理。 How do I do this?我该怎么做呢?
Thank you.谢谢你。
System.Diagnostics.Process.Start(path_to_exe);
Microsoft documentation explains the additional parameters you can pass into the method. Microsoft 文档解释了您可以传递给该方法的其他参数。 https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.start?view=net-5.0 https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.start?view=net-5.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.