Is there a way to tell from within a program which executable is being
used -- which executable, not the version -- to run it?

Seems like there should be, but I'm striking out...

TIA,
-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
twitter: @hassan