Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getting app path

0 views
Skip to first unread message

Eric Furrer

unread,
Feb 24, 1997, 3:00:00 AM2/24/97
to

Does anyone know how to get the application path in delphi? In VB it's
app.path


fur...@mjw.com


Michael H. Sherrane

unread,
Feb 24, 1997, 3:00:00 AM2/24/97
to

fur...@mjw.com (Eric Furrer) wrote:

>Does anyone know how to get the application path in delphi? In VB it's
>app.path

AppPath := ExtractFilePath(Application.ExeName);

Mike Sherrane
sher...@bluemtn.com blue mountain software

Our motto: "Work hard,have fun,make money."
(Delphi,Progress,C++, & Rad. Atlanta, Georgia. 770-875-TECH(8324))
www.bluemtn.com
e-mail: in...@bluemtn.com


Chuck

unread,
Feb 24, 1997, 3:00:00 AM2/24/97
to


Eric Furrer <fur...@mjw.com> wrote in article
<5eqo3l$q...@cyberlink.clo.com>...


> Does anyone know how to get the application path in delphi? In VB it's
> app.path
>
>

> fur...@mjw.com
>
var
ThePath:TextFile;


// get current path
GetDir(0, ThePath); // 0 = current drive


vpale...@bdo.com

unread,
Feb 25, 1997, 3:00:00 AM2/25/97
to

On 24 Feb 1997 00:41:25 GMT, fur...@mjw.com (Eric Furrer) wrote:

>Does anyone know how to get the application path in delphi? In VB it's
>app.path
>
>
>fur...@mjw.com
>

var ProgPath : string;

ProgPath := ExtractFilePath(ParamStr(0));

Bill Florac

unread,
Feb 26, 1997, 3:00:00 AM2/26/97
to

Oh look, a third way of getting the appliction path!

AppPath := ExtractFilePath(Application.ExeName);

jo...@lindgren.pp.se

unread,
Feb 28, 1997, 3:00:00 AM2/28/97
to

> "Chuck" <ch...@netrix.net> writes:
> Eric Furrer <fur...@mjw.com> wrote in article
> > Does anyone know how to get the application path in delphi? In VB it's
> > app.path
> var
> ThePath:TextFile;
> // get current path
> GetDir(0, ThePath); // 0 = current drive

You can also use:
var
exepath : string;
begin
exepath := extractfilepath(application.exename);

johan


Andy Schmidt [NJ]

unread,
Mar 7, 1997, 3:00:00 AM3/7/97
to

What's wrong with

ExtractFilePath(Application.ExeName) ?

Andy Schmidt [NJ]

http://OurWorld.CompuServe.Com/HomePages/Andy_Schmidt

0 new messages