There is no reliable way. This is true of Unix, and Linux. Tell me what you are trying to do and I will probably be able to tell you a better, and safer way to do it.
-----Original Message----- From: Ferguson, Neale [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:47 PM To: [EMAIL PROTECTED] Subject: API to get fullpath name How do I, within a program, get the full pathname of the program I'm executing? argv[0] will have the command name but not necessarily the full pathname.