current directory of the DLL tool ???????

401
2
08-22-2010 01:03 PM
AbdulrahmanAlqasim
New Contributor
how i can get the current directory of the dll tool that im working on it .

Environment.CurrentDirectory.ToString()  ; //returns the path of the current Map document.

thanks
0 Kudos
2 Replies
AndrewMay
New Contributor
Try

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

This should give you the folder the currently running dll is in.
0 Kudos
AbdulrahmanAlqasim
New Contributor
amay_uk: THANK YOU ALOT
0 Kudos