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
program
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).
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal