在VS.2005中获取应用程序EXE名称 [英] Get Application EXE name in VS.2005

查看:85
本文介绍了在VS.2005中获取应用程序EXE名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用VB.net获取VS.2005中运行的可执行文件的名称

。我查看了my.application对象,但是我只能找到不包含

可执行文件名的My.Application.Info.DirectoryPath。


在此先感谢


劳伦斯

解决方案



Larry写道:


如何获取在VS.2005中运行的可执行文件的名称

using VB.net。我查看了my.application对象,但是我只能找到不包含

可执行文件名的My.Application.Info.DirectoryPath。


在此先感谢


Laurence



我使用Application.ProductName。


在程序集信息窗口中设置。




Larry写道:


如何使用VB.net获取在VS.2005中运行的可执行文件的名称

。我查看了my.application对象,但是我只能找到不包含

可执行文件名的My.Application.Info.DirectoryPath。


在此先感谢


Laurence



对不起,误读了你的问题。 EXE文件名应该是:


Application.ExecutablePath


一个简单的方法来收集EXE文件名,使用FileInfo类。


是My.application.ExecutablePath吗?

我在my.application中看不到它对象,

我也不会在任何地方看到一个Application对象。


Laurence

za *** @ construction-imaging.com 写道:


Larry写道:
< blockquote class =post_quotes>
>如何使用VB.net获取VS.2005中运行的可执行文件的名称。我查看了my.application对象,但我只能找到不包含
可执行文件名的My.Application.Info.DirectoryPath。

在此先感谢

劳伦斯



对不起,误读了你的问题。 EXE文件名应该是:


Application.ExecutablePath


一个简单的方法来收集EXE文件名,使用FileInfo类。


How does one get the name of the executable that is running in VS.2005
using VB.net. I have looked at the my.application object but I can
only find My.Application.Info.DirectoryPath which does not include the
executable name.

Thanks in Advance

Laurence

解决方案


Larry wrote:

How does one get the name of the executable that is running in VS.2005
using VB.net. I have looked at the my.application object but I can
only find My.Application.Info.DirectoryPath which does not include the
executable name.

Thanks in Advance

Laurence

I use Application.ProductName.

Set in the Assembly Info window.



Larry wrote:

How does one get the name of the executable that is running in VS.2005
using VB.net. I have looked at the my.application object but I can
only find My.Application.Info.DirectoryPath which does not include the
executable name.

Thanks in Advance

Laurence

Sorry, misread your question. The EXE filename should be in:

Application.ExecutablePath

An easy way to glean out the EXE filename, use the FileInfo class.


Is that My.application.ExecutablePath?

I don''t see it in the my.application object,
nor do I see an Application object any where.

Laurence

za***@construction-imaging.com wrote:

Larry wrote:

>How does one get the name of the executable that is running in VS.2005
using VB.net. I have looked at the my.application object but I can
only find My.Application.Info.DirectoryPath which does not include the
executable name.

Thanks in Advance

Laurence


Sorry, misread your question. The EXE filename should be in:

Application.ExecutablePath

An easy way to glean out the EXE filename, use the FileInfo class.


这篇关于在VS.2005中获取应用程序EXE名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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