0

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

Edited by pritaeas: Added markdown.

2
Contributors
3
Replies
14
Views
4 Years
Discussion Span
Last Post by pritaeas
0

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

0

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

string folder = WebConfigurationManager.AppSettings["Folder"].ToString();
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.