[Lazarus] Path that .exe file is running from

Richard Mace richard.mace at gmail.com
Thu Aug 1 21:11:54 CEST 2013


On 1 August 2013 20:09, Reinier Olislagers <reinierolislagers at gmail.com>wrote:

> On 01/08/2013 20:56, Richard Mace wrote:
> > Hi,
> > How can I get the path of where my application is running from?
> > I have tried Application.Name but "Application" is not found?
> >
> e.g. paramstr(0)
>
> Note: getting the exe path is not guaranteed to work on all platforms
> (e.g. OSX). Please see the documentation as well as the multiplatform
> programming articles on the wiki.
>

Perfect, thanks Reinier

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130801/fc34500e/attachment-0003.html>


More information about the Lazarus mailing list