问:获取目录 [英] Q: Getting a directory

查看:79
本文介绍了问:获取目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiya


我写了一个小应用程序,然后我生成了一个安装项目

来在其他计算机上安装该应用程序。 />

如何从应用程序中确定程序已安装到哪个



提前致谢


Geoff

Hiya

I have written a small application which I''ve then generated a setup project
to install the application on other computers.

How can I determine, from the application, where the program has been
installed to?

Thanks in advance

Geoff

推荐答案

Application.StartupPath()


Chris


" Geoff Jones" <无******** @ email.com>在消息中写道

news:42 ********************** @ news.dial.pipex.com。 ..
Application.StartupPath()

Chris

"Geoff Jones" <no********@email.com> wrote in message
news:42**********************@news.dial.pipex.com. ..
Hiya

我编写了一个小应用程序,然后我生成了一个设置项目,以便在其他计算机上安装该应用程序。

如何从应用程序中确定安装程序的位置?

提前致谢

Geoff
Hiya

I have written a small application which I''ve then generated a setup
project to install the application on other computers.

How can I determine, from the application, where the program has been
installed to?

Thanks in advance

Geoff



Geoff,

Geoff,

"Geoff Jones" <no********@email.com> schrieb:
如何从应用程序中确定安装程序的位置?
How can I determine, from the application, where the program has been
installed to?




''应用程序.StartupPath''(适用于Windows窗体应用程序)。对于库,

控制台应用程序等(忽略文本并查看代码):


< URL:http:// dotnet .mvps.org / dotnet / code / application / #ApplicationPath>


-

MS Herfried K. Wagner

MVP < URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/dotnet/faqs/>



''Application.StartupPath'' (for Windows Forms applications). For libraries,
console applications, etc. (ignore the text and take a look at the code):

<URL:http://dotnet.mvps.org/dotnet/code/application/#ApplicationPath>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Hi Herfried


感谢您的建议。这不是我想要的;虽然我没有b $ b使自己非常清楚。


使用部署项目,应用程序存储在一个目录中

称为例如ABC有限公司,它是制造商的产品。制作

软件。我想做的是在应用程序中找到这个文件夹的路径




我想这是使用注册表完成的等等,但我不确定如何继续。


你可以得到任何进一步的帮助吗?


Geoff


" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道

news:uM ************** @ TK2MSFTNGP15.phx.gbl ...
Hi Herfried

Thanks for the suggestion. It isn''t exactly what I want; although I didn''t
make myself very clear.

Using the Deployment project, the application is stored in a directory
called, for example, ABC Ltd, which is the "Manufacturer" producing the
software. What I''d like to do is to find, within the application, the path
to this folder.

I guess this is done using the registry etc. but I''m unsure how to proceed.

Can you be of any further help?

Geoff

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uM**************@TK2MSFTNGP15.phx.gbl...
Geoff,
杰夫琼斯 <无******** @ email.com> schrieb:
Geoff,

"Geoff Jones" <no********@email.com> schrieb:
如何从应用程序中确定安装程序的位置?
How can I determine, from the application, where the program has been
installed to?



''Application.StartupPath'' (适用于Windows窗体应用程序)。对于
库,控制台应用程序等(忽略文本并查看代码):

< URL:http://dotnet.mvps.org / dotnet / code / application / #ApplicationPath>

- MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>



''Application.StartupPath'' (for Windows Forms applications). For
libraries, console applications, etc. (ignore the text and take a look at
the code):

<URL:http://dotnet.mvps.org/dotnet/code/application/#ApplicationPath>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



这篇关于问:获取目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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