Solved

Get program path

Posted on 1998-12-02
3
172 Views
Last Modified: 2011-09-20
How can I find out where a program is currently running (path) from within that program ?
0
Comment
Question by:ymailhot
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 50 total points
ID: 1349069
You can do like so...

MyExeName := Application.ExeName;

That's the path and the exe's name..if you want to extract the path just use the following example...

Path :=    ExtractFilePath(Application.ExeName);

Cheers,
Viktor
0
 

Author Comment

by:ymailhot
ID: 1349070
Thank you.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1349071
no problem
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: how to implement a User Shortcut mapper? 1 132
Delphi XE10 Round Image 2 183
enhance the following code 3 41
shape, triangle, dbctrlgrid 3 31
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

679 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