title: How to get execution directory of console application
body: <p>I tried to get the directory of the console application using the below code,</p>
  
  <pre><code>Assembly.GetExecutingAssembly().Location
  </code></pre>
  
  <p>but this one gives me where the assemble resides. This may be different from where I executed the application.</p>
  
  <p>My console application parses logs with no parameters. It must go to the <code>logs/</code> folder inside of the executable's folder or if I give it a path to <code>logs/</code> it parses it.</p>