How to get the current project folder path?
string str = Application.ExecutablePath;
string scriptpath = Directory.GetParent(str).Parent.FullName;
C:\Users\<My User Name>\AppData\Local\Apps\2.0\MyFolder\MyFolder2\MyFolder3\file.exe
returns -> Folder Path with .exe file on it.
This syntax : Directory.GetParent(str).Parent.FullName returns the folder path .. C:\Users\\AppData\Local\Apps\2.0\MyFolder\MyFolder2\
I am not able to get the " C:\Users\<My User Name>\AppData\Local\Apps\2.0\MyFolder\MyFolder2\MyFolder3\ "
I need to get the folder path above the .exe file.