c# console application folder path file get code code example
Example 1: get application path c#
System.Reflection.Assembly.GetExecutingAssembly().Location
Example 2: how to get the startup path in console app
var GetDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);