Tuesday, July 14, 2009

Set the current directory in C#?

How do I set the current directory to the one in which the program itself resides without using an absolute path in the Directory.SetCurrentDirectory() function?

Set the current directory in C#?
You can use System.Reflection.Assembly.GetExecutingA... to get the directory the exe resides.

crab apple

No comments:

Post a Comment