设为首页 收藏本站
查看: 653|回复: 0

[经验分享] zz: SharePoint 2007 Folders from Eric Cherng

[复制链接]

尚未签到

发表于 2015-9-29 08:34:01 | 显示全部楼层 |阅读模式
  From:  http://blogs.vertigosoftware.com/ericc/archive/2006/09/13/SharePoint_2007_Folders.aspx



  I've always found it difficult to remember where all the folders SharePoint uses are and what each folder is used for. So here's my attempt to consolidate this information in one post for easy reference. This post assumes default folder locations. Obviously if you customized anything, then you're on your own.
  
  WSS/SharePoint Server Program Folder
  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12
  C:\Program Files\Microsoft Office Servers\12.0 (not sure about this)
  This is where most of the program files for SharePoint live.
  
  WSS/SharePoint Binaries
  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
  This contains the executable binaries used with SharePoint. For example, stsadm.exe and the WSS Timer service, owstimer.exe, is located here.
  
  WSS/SharePoint Server Assemblies, ASPX, ASMX
  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI
  Contains most of the ASPX (ASP.NET Web Forms) and ASMX (ASP.NET Web Services) files of SharePoint. Also if you are writing code that uses the SharePoint assemblies (ie. Microsoft.SharePoint.dll, Microsoft.SharePoint.Server.dll, ...), then the assemblies you need are located in this folder.
  
  SharePoint Logs
  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS
  SharePoint told you to check the logs? This is where you can find the raw log files.
  
  SharePoint Site Features
  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES
  Looks like this is where all the SharePoint Features metadata is stored.
  
  Site Layout Template
  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS
  This is the folder where the virtualized _layouts path for each site URL is located. Add additional files in here to have it be available to all sites.
  
  SharePoint Setup Cache
  C:\Program Files\Common Files\Microsoft Shared\SERVER12\Server Setup Controller
  Looks like this is where SharePoint Setup stores the setup configuration. If you have Office installed as well, then this folder is also used for them.
  
  Web Application Virtual Directories
  C:\Inetpub\wwwroot\wss\VirtualDirectories
  The folder where your SharePoint web applications point to.
  
  Web Application web.config
  C:\Inetpub\wwwroot\wss\VirtualDirectories\[web application]\web.config
  Need to customize the web.config for a particular web application? This is the web.config that you want to edit. Replace [web application] to your web application first of course.

  
  Install Web Parts per Web Application in here
  C:\Inetpub\wwwroot\wss\VirtualDirectories\[web application]\_app_bin
  Additional assemblies (ie. custom web parts) are installed here on a per web application basis. You can also install Web Parts to the GAC as well to be accessible in all web applications on the server.
  
  This post compliments my post on SharePoint 2007's registry locations.
  If anyone knows of any other interesting folder locations, let me know so I can add them here.



Good Reply:
1.
decided to derive them

public static class SystemPaths
{
private static readonly string sharePointServerInstallPath;
private static readonly string sharePointServerInstallPathRoot;
private static readonly string wSSInstallPath;
private static readonly string wSSRegistryPath;
private static readonly string wSSSharePointBinaryPath;
private static readonly string sharePointRegistryPath;
private static readonly string wSSSharePointIsapiPath;
private static readonly string wSSSharePointLogsPath;
private static readonly string wSSSharePointFeaturesPath;
private static readonly string wSSSharePointLayoutsPath;


static SystemPaths()
{
wSSRegistryPath = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\";
sharePointRegistryPath = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\";
string commonProgramFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles);

sharePointServerInstallPath = (string)Registry.GetValue(sharePointRegistryPath, "InstallPath", null);
sharePointServerInstallPathRoot = (string)Registry.GetValue(SharePointRegistryPath, "InstallPathRoot", null);
wSSInstallPath = string.Format(@"{0}\Microsoft Shared\web server extensions\12", commonProgramFilesPath);

wSSSharePointBinaryPath = Path.Combine(wSSInstallPath, "BIN");
wSSSharePointIsapiPath = Path.Combine(wSSInstallPath, "ISAPI");
wSSSharePointLogsPath = Path.Combine(wSSInstallPath, "LOGS");
wSSSharePointFeaturesPath = Path.Combine(wSSInstallPath, @"TEMPLATE\FEATURES");
wSSSharePointLayoutsPath = Path.Combine(wSSInstallPath, @"TEMPLATE\LAYOUTS");



}
/// <summary>
/// Gets the Office Sharepoint Server install path.
/// </summary>
/// <example>C:\Program Files\Microsoft Office Servers\12.0</example>
public static string SharePointServerInstallPath
{
get
{
return sharePointServerInstallPath;
}
}
/// <summary>
/// Gets the Office Sharepoint Server install path root.
/// </summary>
/// <example>C:\Program Files\Microsoft Office Servers\</example>
public static string SharePointServerInstallPathRoot
{
get
{
return sharePointServerInstallPathRoot;
}
}


/// <summary>
/// Gets tha path to the WSS install path root.
/// </summary>
/// <example>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12</example>
public static string WSSInstallPath
{
get
{
return wSSInstallPath;
}
}

/// <summary>
/// Gets the path to the root registry entry fo WSS.
/// </summary>
/// <example>HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\</example>
public static string WSSRegistryPath
{
get
{
return wSSRegistryPath;
}
}

/// <summary>
/// Gets the path to the root registry entry for Office Sharepoint Server.
/// </summary>
/// <example>HKLM\SOFTWARE\Microsoft\Office Server\12.0\</example>
public static string SharePointRegistryPath
{
get
{
return sharePointRegistryPath;
}
}

/// <summary>
/// Gets the path to the directory that contains executable binaries used with WSS and Office SharePoint Server.
/// </summary>
/// <remarks>stsadm.exe and the WSS Timer service, owstimer.exe, is located here.</remarks>
/// <example>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN</example>
public static string WSSSharePointBinaryPath
{
get
{
return wSSSharePointBinaryPath;
}
}
/// <summary>
/// Gets the path to the directory that contains the WSS and Office SharePoint Server Assemblies, ASPX, ASMX.
/// </summary>
/// <remarks>Contains most of the ASPX (ASP.NET Web Forms) and ASMX (ASP.NET Web Services) files of SharePoint. Also if you are writing code that uses the SharePoint assemblies (ie. Microsoft.SharePoint.dll, Microsoft.SharePoint.Server.dll, ...), then the assemblies you need are located in this folder.</remarks>
/// <example>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI</example>
public static string WSSSharePointISAPIPath
{
get
{
return wSSSharePointIsapiPath;
}
}
/// <summary>
/// Gets the path to the directory that contains the WSS and Office SharePoint Server log files.
/// </summary>
/// <remarks>SharePoint told you to check the logs? This is where you can find the raw log files.</remarks>
/// <example>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS</example>
public static string WSSSharePointLogsPath
{
get
{
return wSSSharePointLogsPath;
}
}
/// <summary>
/// Gets the path to the directory that contains the WSS and Office SharePoint Server Site Features.
/// </summary>
/// <remarks>Looks like this is where all the SharePoint Features metadata is stored.</remarks>
/// <example>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES</example>
public static string WSSSharePointFeaturesPath
{
get
{
return wSSSharePointFeaturesPath;
}
}

/// <summary>
/// Gets the path to the directory that contains the WSS and Office SharePoint Server Site Layouts.
/// </summary>
/// <remarks>This is the folder where the virtualized _layouts path for each site URL is located. Add additional files in here to have it be available to all sites.</remarks>
/// <example>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS</example>
public static string WSSSharePointLayoutsPath
{
get
{
return wSSSharePointLayoutsPath;
}
}
}
  
2.
Log folders path :SPDiagnosticsService.Local.LogLocation
or one more :Microsoft.SharePoint.Utilities.SPUtility.GetGenericSetupPath("LAYOUTS")

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-120196-1-1.html 上篇帖子: sharepoint 2010 重写SaveButton 的一些方法 下篇帖子: SharePoint 搜索爬网第三方网站配置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表