Hi Guys,
I have a question regarding the current path for an application.
System.Reflection.Assembly.GetExecutingAssembly.Location
For example this would return:
"C:\Temp\Temp.exe"
That code returns the location of the current executable file, now the problem I am having is just finding the applications path. What I am looking to find is just the folder name or:
"C:\Temp\"
Is, System.Reflection.Assembly.GetExecutingAssembly.Location the right method to use? If not what would return the current path of the file?
I have a question regarding the current path for an application.
System.Reflection.Assembly.GetExecutingAssembly.Location
For example this would return:
"C:\Temp\Temp.exe"
That code returns the location of the current executable file, now the problem I am having is just finding the applications path. What I am looking to find is just the folder name or:
"C:\Temp\"
Is, System.Reflection.Assembly.GetExecutingAssembly.Location the right method to use? If not what would return the current path of the file?