0
Posted on 3:28 PM by Badragheh and filed under ,
in C#.net if you try
string dr = System.IO.Path.GetDirectoryName();
this will not work, so you have to use this

System.IO.Path.GetDirectoryNameSystem.IO.Path.
GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);


which returns the directory.