views:

109

answers:

1

Is there a way to get to sitecore settings through code.

The specific setting I'm interested in is the data Folder path.

+2  A: 

Yes. Look at the Sitecore.Configuration.Settings class (which is your entry point to the Sitecore settings), and use the static DataFolder property:

string dataFolder = Sitecore.Configuration.Settings.DataFolder;
driis