Solved

vb.net function for Path to executing program (equivalent to VB6 App.Path)?

Posted on 2013-05-23
2
697 Views
Last Modified: 2013-05-24
Hi Experts,

I am looking for the vb.net equivalent to the VB6 function, App.Path.

I have tried Application.ExecutablePath, but that gives me something like:
D:\Dev-Ver6.0\VB.NET\working copy root\CIRCLY60\VB.NET\bin\Debug\CIRCLY.EXE

What I am after is:
D:\Dev-Ver6.0\VB.NET\working copy root\CIRCLY60\VB.NET\bin\Debug

I know I could trim off the "\CIRCLY.EXE" part from the end of the string, but I assume there is something more elegant?

Regards,
Leigh
0
Comment
Question by:LeighWardle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39193139
If this is a Forms app, then you can use Application.StartupPath.
0
 
LVL 1

Author Closing Comment

by:LeighWardle
ID: 39193550
Thanks, kaufmed.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question