Hello,
I have uploaded 2 vi's I was talking about at the last user group meeting.
The first one is what I use to get the current VI path. This vi checks to see if the current environment is the LabVIEW development environment or an executable.
I have also included Bloomy Control's VI that exits the VI if an executable.
Enjoy!