Saturday, December 6, 2008

Get Directory Name in Windows Mobile in C#.net

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.

No comments:

Post a Comment