How to get the current executable's path in C#
There are many ways to find the current executable path in C#. The below option is to get executable file path and then get directory parent of that path.string strExeFilePath = System.Reflection.Assembly.GetExecutingAssembly().Location;
string strWorkPath = System.IO.Path.GetDirectoryName(strExeFilePath)