Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting application path in Firemonkey

So in VCL, one would use the following line of code to retrieve the applications path:

ExtractFilePath(Application.ExeName)

I tried the same thing Firemokey and I noticed that ExeName was no longer available. What code can I use as an alternative to this?

like image 938
ple103 Avatar asked Mar 05 '13 08:03

ple103


2 Answers

Try using ParamStr(0) instead of Application.ExeName.

like image 68
AvgustinTomsic Avatar answered Nov 09 '22 11:11

AvgustinTomsic


I'm using

showmessage(System.SysUtils.GetCurrentDir);

and works like a charm :)

like image 5
Adam T. Avatar answered Nov 09 '22 10:11

Adam T.