This should indicate the path where the executable is located:
Environment.CurrentDirectory;
If not, you can try:
Directory.GetParent(Assembly.GetEntryAssembly().Location).FullName
A more hacky but functional way:
Path.GetFullPath("a").TrimEnd('a')
:)
TheSoftwareJedi Oct 14 '08 at 4:06 2008-10-14 04:06
source share