to get the current directory

String s = Directory.GetCurrentDirectory()

For Compact .NET:
String s = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);

Tags:

Comments are closed.