如何调用.exe文件W /未知路径?(How can I call a .exe file W/unknown Path?)

编程入门 行业动态 更新时间:2024-10-28 18:35:29
如何调用.exe文件W /未知路径?(How can I call a .exe file W/unknown Path?)

如何调用C#中安装在机器上的.exe文件W /未知路径?

Process.Start(?);

How can I call a .exe file W/unknown Path which installed on the machine in C#?

Process.Start(?);

最满意答案

Process.Start("myExeFileName.exe");

您需要希望系统搜索路径包含可执行文件所在的路径,或者它已经注册了APPPATH 。

Process.Start("myExeFileName.exe");

You'll need to hope that the system search path includes the path where the executable lives, or that it has registered an APPPATH.

更多推荐

本文发布于:2023-07-29 20:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319469.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   文件   exe   call   Path

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!