Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting path to executing application



On Friday, July 25, 2003, at 12:13, tobias ford... wrote:

I'm needing to find a way to get the path to where the actual executable file resides using POSIX apis. For example:

foo is located at /usr/bin/foo

when I execute foo, I want it to print /usr/bin/foo no matter what directory I'm in.

I don't want to have to construct it from argv[0] with the cwd.

after looking around, I'm beginning to think that this isn't possible. Any suggestions? please cc me directly.

AFAIK, There is no POSIX API to do that. You're out of luck.


--
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >getting path to executing application (From: "tobias ford..." <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.