Hi all i am working on asp.net web based application
in this application i have to configure one setting from web.config file
which is path of folder and i want to create that folser on the working directory of project so any body Please tell me can i use Environment.CurrentDirectory if yes then how and if no then Please provide me any convinient way to achive this task

Recommended Answers

All 3 Replies

I'd use AppDomain.CurrentDomain.BaseDirectory to get the current base directory. Append your folder name to it, and create the new folder.

thx for Help Dear pritaeas but how to Use that in web.Config File If u can help Me

You want to add the folder name to the web.config and use that?

string folder = WebConfigurationManager.AppSettings["Folder"].ToString();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.