[fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Feb 5 10:29:04 CET 2009


On 05 Feb 2009, at 08:54, Ken G. Brown wrote:

> How can I find the directory path to the executable of the currently  
> executing program from within the program?
>
> Or alternately, how can I specify the relative path to a file that  
> is located in the same folder as the application bundle for my  
> currently executing program?
>
> Using ./filename does not appear to work for me.
>
> Are there file and directory type utilities available? Where can I  
> read up on them?

http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/CFBundles.html

E.g., http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/Tasks/locating.html#/ 
/apple_ref/doc/uid/20001123-123785


Jonas



More information about the fpc-pascal mailing list