title: Path of the local directory
body: <p>A rather simple question; how to find the path of the local directory in which my exe is placed? As-in I have an .exe and in the program I have to create a txt file in the directory where the exe is!</p>
  
  <p>[language - C#]</p>
  
  <p>So, if the exe is in C:/Temp  and is started from there; my txt should be created in C:/Temp</p>
  
  <p>If the user wishes to move the exe to D:/Temp and runs from there; I should be able to create the txt file in D:/Temp</p>
  
  <p>I tried the Directory.GetCurrentDirectory() but that returns the directory of the execution of the program!</p>