Get the application folder

To get the path where the executable is located use the following code:

Path.GetDirectoryName(Application.ExecutablePath);

The returned path does not contain a trailing backslash.

To add a filename or mask use Path.Combine

Lastest update in February 2012, inital post in February 2012

Write a comment

I appreciate comments, suggestions, compliments etc. Unfortunately I have no time to reply to them. Useful input will be used for sure!