Wednesday, February 9, 2011

Getting project current path in dot net

just use this to get the project current path.
soem times we need to create the log folder inside the project path with bin and other folders.
this is in windows application.

string path = Directory.GetParent(Path.GetDirectoryName(Application.StartupPath)).FullName;

yes.sudhanshu

No comments:

Post a Comment