Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Filespec of file in the same directory as the current executable
private const string ConfigFile_Filename = "ENTER FILENAME HERE";
private string GetExePath()
{
return(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location));
}
private string GetFilespec()
{
return(System.IO.Path.Combine(GetExePath(), ConfigFile_Filename));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.