Thursday, June 11, 2009

Get Executable path in .Net CF 2.0

To retrieve the current path or the executable path in .net Compact Framework 2.0, we can use the following code in C#

string curPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);


:)

No comments: