Link to home
Start Free TrialLog in
Avatar of Choli100298
Choli100298

asked on

Current Path

Delphi 1
How to get the actual Path? I should know where my .exe is in the directory..

Thanx Choli
ASKER CERTIFIED SOLUTION
Avatar of dotan
dotan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BlackDeath
BlackDeath

or:
sStartUpPath := ExtractFilePath(Application.ExeName);

and for the current directory use the API-function

GetCurrentDirectory(bufLength, buf);

with bufLength specifying the size of the buffer you will receive the directory in and
buf the address of the above mentioned buffer

- dotan:
you've been about 1 ms faster than me; the same second i tried to post this, the answer was auto-rejected from the system and so i post this comment.
this just as declaration why i post the same as you; it's not because i didn't read your answer...

;-)))

byebye,

Black Death.
Avatar of kretzschmar
hi choli,

all are faster than me

your_string_var := ExtractFilePath(ParamStr(0));

meikl