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);

  


About Me

Matt Gieselman
.Net Developer
PADI Scuba Instructor
Del Mar, CA
Facebook: my profile

Recent comments

Search

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010