Application.Startpath

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

hi,

In a "normal" C# .net 2.0 Application i can use the method
Application.StartPath to find out my Startpath.

But how can i fix this in Compact Framework ?


thanks a lot
 
You can use the System.Reflection namespace to find the folder where your
exe resides. e.g.

Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedPath)

Peter
 
Back
Top