working directory c# code example
Example 1: c# get script directory
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Example 2: c# get script directory
string appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
Example 3: c# windows application get current path
System.IO.Path.GetDirectoryName(Application.ExecutablePath);