There are some special directories easily available through use of the Environment.SpecialFolder enumeration: ApplicationData, Favorites, Personal, Programs, StartMenu and Startup. But it is a bit harder to e.g. get the current directory of the running application.
System.IO.Directory.GetCurrentDirectory() doesn’t work; it will give you an NotImplementedException at runtime.
To get it as string type:
Note the GetModules() if you have more than one module. To get the special folders:
(I give up trying to format the text, this wordpress text editor is by far the worst I’ve ever tried!)