I'm looking to create a console application in C# that can be added to the system path. So of course it will need to operate within the working directory. But I will have public key files installed in the same directory as the executable, so I will need to get the installed directory as well. How can I do this?
Clarification: In a C# console application, I want to be able to access both the working directory and the directory where the EXE file is. These are different directories. I know how to get the former, I need to know how to get the latter.