[fpc-pascal] Re: specifying the relative path to a file that is located in the same folder as the application bundle?
jonas.maebe at elis.ugent.be
Thu Feb 5 23:00:24 CET 2009
On 05 Feb 2009, at 22:52, Paul Nicholls wrote:
> Maybe I haven't understood you completely, but have you tried this?
> MyProgramFolder := ExtractFilePath(ParamStr(0));
> This should hopefully get you the folder of the currently running
> from within the program (at least under Win32 and Linux).
That is completely OS (and sometimes OS-version) dependent, and should
not be used if you want portable code (even on Linux it does not work
under all circumstances).
More information about the fpc-pascal