Question

I need to process a bunch of files from a console application. How how do I get the folder of the executing console application so as to locate the files?

Tried the following code but to no avail:

Assembly.GetExecutingAssembly().Location
1 Answers

Just found the answer myself: use Environment.CurrentDirectory

It does exactly what I need.