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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment