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

Leave a Reply

Your email address will not be published. Required fields are marked *