How can I get the complete path of an application's executable file from within the application itself?

Thanks,
Matt Johnson