title: Get current folder path
body: <p>I want to create a program that converts files. I would like the user to be able to place the executable file in any directory, and when executing that program (double-clicking on the .exe) I want the program to process <strong>all the files within the current folder where the exe file exists</strong>. How can the program determine the path in which it is currently executing?</p>
  
  <p>I tried <code>System.Windows.Forms.Application.StartupPath</code> but that seems to be the wrong way.</p>
  
  <p>Any ideas?</p>