how to get current dir in c# code example Example: get current directory c# \ System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);