>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
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
>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));
AppPath := ExtractFilePath(Application.ExeName);
You can also use:
var
exepath : string;
begin
exepath := extractfilepath(application.exename);
johan
ExtractFilePath(Application.ExeName) ?
Andy Schmidt [NJ]