If you wanna get the path where exe file is  running from

windows forms:

      Application.StartupPath();

wpf:

      AppDomain.CurrentDomain.BaseDirectory;
or
      String appStartPath  = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);

Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (8 + 8) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 02.01.2009
Views: 934
Item date: 23.08.2009
Views: 721
Item date: 13.05.2009
Views: 2125
Item date: 14.12.2009
Views: 1052
Item date: 14.05.2009
Views: 1116
Item date: 21.07.2009
Views: 1345
Item date: 03.01.2009
Views: 1910
Item date: 21.07.2009
Views: 2039
Item date: 17.06.2009
Views: 1494