Solved

Programmatically find the location of your executable at run time

Posted on 2009-04-11
3
388 Views
Last Modified: 2012-05-06
How can you programmatically find the location of your executable at run time.
0
Comment
Question by:mikelittlewood
[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
3 Comments
 
LVL 8

Expert Comment

by:BdLm
ID: 24121753
0
 
LVL 8

Accepted Solution

by:
BdLm earned 100 total points
ID: 24121762
pls try :

ExtractFilePath(Application.Exename);
0
 
LVL 15

Author Comment

by:mikelittlewood
ID: 24121783
Hi BdLm.
Thanks for your answers, not sure why I posted this in the end, I just wasn't thinking what I was asking. Knew the answer already lol.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

733 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