<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>"Ken G. Brown" <<A
href="mailto:kbrown-ee4meeAH724@public.gmane.org">kbrown-ee4meeAH724@public.gmane.org</A>>
wrote in message <BR><A
href="news:p06240407c5b049e88bbd@[10.0.1.199">news:p06240407c5b049e88bbd@[10.0.1.199</A>]...<BR>>
MacOS X, 10.5.6, fpc 2.2.2<BR>><BR>> How can I find the directory path to
the executable of the currently <BR>> executing program from within the
program?<BR>><BR>> Or alternately, how can I specify the relative path to
a file that is <BR>> located in the same folder as the application bundle for
my currently <BR>> executing program?<BR>><BR>> Using ./filename does
not appear to work for me.<BR>><BR>> Are there file and directory type
utilities available? Where can I read up <BR>> on them?<BR>><BR>> Thx
for any tips,<BR>> Ken G. Brown<BR>>
_______________________________________________<BR>> fpc-pascal
maillist - <BR>> <A
href="mailto:fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b@public.gmane.org">fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b@public.gmane.org</A><BR>>
<A
href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</A><BR>><BR><BR>Maybe
I haven't understood you completely, but have you tried
this?<BR><BR>MyProgramFolder := ExtractFilePath(ParamStr(0));<BR><BR>This should
hopefully get you the folder of the currently running program <BR>from within
the program (at least under Win32 and Linux).<BR><BR>cheers,<BR>Paul
<BR><BR></BODY></HTML>