Pretty simple question; How to find the path to the local directory where my exe is located? As-in, I have a .exe, and in the program I need to create a txt file in the directory where exe is! A.
[language - C #]
So, if exe is in C: / Temp and starts from there; my txt should be created in C: / Temp
If the user wants to move exe to D: / Temp and from there from there; I would have to create a txt file in D: / Temp
I tried Directory.GetCurrentDirectory (), but it returns the program execution directory!
c #
Jayesh
source share