I'm surprised this hasn't been mentioned yet but I use:

System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase

or you can use GetCallingAssembly if that makes more sense.

David

"If we can hit that bullseye, the rest of the dominoes
 will fall like a house of cards... checkmate!"
 -Zapp Brannigan, Futurama

Reply via email to