c# how to get the program's current location code example
Example 1: c# get current directory
string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
Example 2: get execution directory c#
string logsDirectory = Path.Combine(Environment.CurrentDirectory, "logs");