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 -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -