在C#.net中运行应用程序 [英] Running Application in C#.net

查看:87
本文介绍了在C#.net中运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发需要调用.exe文件的软件.我不知道它在计算机上的.exe文件的路径.我可以使用Windows注册表项运行.exe文件吗???我正在使用C#.net开发软件..

在此先感谢...

I am developing a software which requires to call .exe file. I dont know the path of the .exe file where it resides on computer. Can I run .exe file using Windows registry entry??? I am using C#.net for developing software..

Thanks in advance...

推荐答案

您在说什么?注册表项? —算了吧.

项目构建的结果是,您的* .exe文件(以及* .dll文件)在输出目录中创建.该目录根据配置被写入您的项目文件中.每个目录名称都相对于项目文件所在的目录.

查看您项目的Properties =>构建=> 输出目录".同样,此目录取决于配置,默认情况下位于与配置同名的另一个目录的子目录中,例如"bin/Debug","bin/Release".

—SA
What are you talking about? Registry entry? — forget it.

Your *.exe files (as well as *.dll files) are created in output directory as a result of the project build. This directory is written in your project file on per configuration basis; each directory name is relative to the directory where your project file is located.

See your project''s Properties => Build => "Output Directory". Again, this directory depends on configuration and by default is located in the sub-directory of another directory with the same name as a configuration, such as "bin/Debug", "bin/Release".

—SA


这篇关于在C#.net中运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆