在VS.2005中获取应用程序EXE名称 [英] Get Application EXE name in VS.2005
问题描述
如何使用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
LaurenceI 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
LaurenceSorry, 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屋!