简体   繁体   English

如何在我的 C# 应用程序中调用第三方 exe?

[英]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.

相关问题 如何从Java中的第三方dll调用C#方法? - How to call C# methode from third party dll in Java? C#-如何在第三方应用程序中设置服务参考配置 - C# - How to set service reference configuration in a third party application 在不使用第三方记录器的情况下登录C#应用程序 - Logging in C# application without using third party logger 使用Windows C#第三方程序更改IOS应用程序名称 - Change IOS Application Name with windows C# third party program 禁用C#控制台应用程序中的跟踪,包括第三方引用 - Disable tracing in C# Console Application including third party references 没有第三方库的文本解析应用程序c# - text parsing application c# without third party libraries 如何在包含第三方DLL文件的同时部署C#应用程序? - How to deploy a C# application while including third-party DLL files? 如何解析显示外部进程(C#)状态的第三方控制台应用程序? - How to parse a third party console application showing the status of external process (C#)? 如何使用C#查找第三方应用程序(如Google Earth)的安装目录? - How to find the installation directory of a third-party application, such as Google Earth, using C#? 如何在 c# 中没有第三方组件的情况下以我的 windows 表单打开 chrome 浏览器? - How to open chrome browser in my windows form without third party component in c#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM