Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get program path

Posted on 1998-12-02
3
Medium Priority
?
177 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 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Integration Management Part 2
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

972 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