In .NET, you can use System.Environment.CurrentDirectory to get the directory from which the process was started. System.Reflection.Assembly.GetExecutingAssembly().Location will tell you the location of the currently executing assembly (that's only interesting if the currently executing assembly is loaded from somewhere different than the location of the assembly where the process started).
Depending on the rights granted to your application, whether shadow copying is in effect or not and other invocation and deployment options, different methods may work or yield different results so you will have to choose your weapon wisely. Having said that,
all of the following will yield the same result for a fully-trusted console application that is executed locally at the machine where it resides: