How can I get the root directory's local path of my sharepoint site? -


Is there a way to determine the local path of the root directory of the current SharePoint programmatically?

Best Regards

The physical local path can be determined by determining the IisSettings fusion on your site.

By the way:

  using the system; Using System.Collections.Generic; Using System.Text; Use of Microsoft Sharepoint; Using Microsoft.SharePoint.Administration; Namespace WSStest {class program {static void Main (string [] args) {usage (SPS ite site = new SPS ite ("http: // <"; ; YOURSITE & gt; ")) {string localpath = site.WebApplication IisSettings [SPUrlZone.Default] .Path.ToString (); Click on the console.print line ("Local Path:" + Local Path);}}}}  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -