Want the directory of a .Net app?

Then use this line:

AppDomain.CurrentDomain.BaseDirectory