473,804 Members | 3,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get Application EXE name in VS.2005

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.DirectoryP ath which does not include the
executable name.

Thanks in Advance

Laurence

Aug 7 '06 #1
14 17759

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.DirectoryP ath which does not include the
executable name.

Thanks in Advance

Laurence
I use Application.Pro ductName.

Set in the Assembly Info window.

Aug 7 '06 #2

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.DirectoryP ath which does not include the
executable name.

Thanks in Advance

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

Application.Exe cutablePath

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

Aug 7 '06 #3
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***@construct ion-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.DirectoryP ath which does not include the
executable name.

Thanks in Advance

Laurence

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

Application.Exe cutablePath

An easy way to glean out the EXE filename, use the FileInfo class.
Aug 7 '06 #4

Laurence wrote:
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
Not sure what is going on. I enter Application and hit the dot, and a
list of properties show up from Intellisense.
>
za***@construct ion-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.DirectoryP ath which does not include the
executable name.

Thanks in Advance

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

Application.Exe cutablePath

An easy way to glean out the EXE filename, use the FileInfo class.
Aug 7 '06 #5
its just as Zach said

Me.Label1.Text = Application.Exe cutablePath

no me, no my, just Application
--
-iwdu15
Aug 7 '06 #6
yea, its supposed to. Not everything has to start with "Me" or "My"....im
confused on what your confused about?
--
-iwdu15
Aug 7 '06 #7
i keep thinking of more ways to explain it....

Application is under the System namespace, and since your importing the
System namespace automatically, its the same as typing

System.Applicat ion
hope that explains it a lil better
--
-iwdu15
Aug 7 '06 #8
there are Objects and Classes that arent part of your form or project...so
they cant be accessed using "Me.". Application is a good example of that.
There are many many many more things that are accessed without the Me (or My
in 2005) keyword(s)....
--
-iwdu15
Aug 7 '06 #9
"iwdu15" <jmmgoalsteraty ahoodotcomschri eb:
Me.Label1.Text = Application.Exe cutablePath

no me, no my, just Application
It's 'System.Windows .Forms.Applicat ion'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Aug 7 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5481
by: Sharon | last post by:
Hi all, Is it possible to programmatically get the IIS application name at run time? If so, how? A software package we bought requires some cache file generated on the server, since we have multiple instance of the application running on that server (pre-staging, staging and production) so we need to configure the web to use the correct cache folder at run time based on
1
1861
by: Dennis | last post by:
Hi, I am wondering that the Application Name in Virtual Directory is compulsory be non-empty field when configuring Virtual Directory for ASP.NET application? I realized some of my ASP.NET applications can run with empty Application Name, but some cannot. Is the Application Name must be same as the xxx.DLL file name in BIN folder and Inherits="xxx.Login" in aspx? (xxx is the name I am referring to)?
4
3671
by: bruce | last post by:
Hello, I'm almost embarrassed to ask this question, but my searches have not yielded any results. How does one change what the Application.Name property returns in Access 2003? I see that it is a read only property at runtime, but is there a way to change it at design time? No matter what I do, Application.Name always returns "Microsoft Access". I tried setting a value in the Application Title under Tools, Startup from the Access
2
13129
by: Chang | last post by:
how to get the name of a running application using C# e.g. if i have 20 dll files and my application name is MyGreatApplication then how to get the name "MyGreatApplication" at runtime? thx in adv. c
1
5973
by: Wilfried Mestdagh | last post by:
Hi, I try to make an about form and put it in my own namespace/class. It works but if I want to display eg application name, it does not. It display name of the calss where the aboutbox is in (not the calling application). What do I wrong ? This is what I call: AppName.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString();
0
1140
by: michael.k.baum | last post by:
Hi- I am having a problem with my application name not being displayed in the Open With dialog box application list. I have associated the ".idm" extension files with my application and that works properly. However if you perform an Open With, the icon for the executable displays at the top of the application list but the application name does not. It's just a blank line. I originally thought that it was just a registry key that...
3
3832
by: buran | last post by:
Dear ASP.NET Programmers, How can I get the name of my application programmatically? Also the path of the application. For instance, if my application is named "buran" and located in c:\inetpub\wwwroot\buran directory, how can get them? Thanks in advance, Buran
4
2697
by: RJDev | last post by:
Hi, Is there anyone who can help me in resolving the Application Name of my IIS Aaplication. I want to check the application name to see what configuration i need to use because multiple virtual or root Web domains are using the same app env. Regards, Rene
0
1222
by: SugarDaddy | last post by:
I managed to get the UAC process pretty much understood. I create the uac.manifest file, the .rc file and generate the .RES file for my applications. I use the project properties to specify the .RES file. I also use signtool to sign the executable with my organization's code- signing certificate. It all works great. Instead of the "Allow/ Cancel" UAC dialog, I get the "Continue/Cancel" UAC dialog, so I'm happy with that. So, on the...
2
3017
by: 4.spam | last post by:
Hello, all. DB2 ESE v9.1.3, Windows XP. I want to change the application name of current connection. I have wrote such SP using sqleseti api call: --- #include <sqlenv.h> #include <sqlcli1.h> #include <sqlca.h>
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10303
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10070
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.