web 2.0

How to get executable directory in .Net

This will give you the current executable directory in .Net:

   System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);

  

Tags: , ,

Software