惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Heimdal Security Blog
SecWiki News
SecWiki News
H
Hacker News: Front Page
N
News | PayPal Newsroom
L
LINUX DO - 最新话题
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
AI
AI
C
Cybersecurity and Infrastructure Security Agency CISA
Scott Helme
Scott Helme
PCI Perspectives
PCI Perspectives
S
Securelist
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Cyberwarzone
Cyberwarzone
A
Arctic Wolf
Forbes - Security
Forbes - Security
T
Tor Project blog
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
I
Intezer
Martin Fowler
Martin Fowler
Help Net Security
Help Net Security
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cisco Talos Blog
Cisco Talos Blog
Latest news
Latest news
博客园 - 司徒正美
W
WeLiveSecurity
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
P
Palo Alto Networks Blog
Google DeepMind News
Google DeepMind News
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
V
Vulnerabilities – Threatpost
Jina AI
Jina AI
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
Simon Willison's Weblog
Simon Willison's Weblog
Project Zero
Project Zero
T
Threatpost
P
Privacy International News Feed
人人都是产品经理
人人都是产品经理
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - Franky
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - yier

ZZ:修改sharepoint文档库文件类型显示图标(PDF,WinRAR) ZZ: How to remove 'Open in Windows Explorer' from the 'Actions Menu' zz: 如何查询SQL Server数据库的版本 zz: 关闭WIN2003关机事件跟踪程序 zz:MOSS內容資料庫的分配與管理 zz:CAML簡介 zz:全局化定制MOSS樣式 zz:貼幾個常用的MOSS樣式選擇器 ZZ:SharePoint常用目录介绍 ZZ:如何修改默认的site template大小 ZZ:JMeter使用指南 ZZ: Moving or Renaming the WSS Central Administration Content Database zz: 如何移動已存在的SQL Server 2005中的user database Search settings - Authentication failed because the remote party has closed the transport stream - yier zz: Calculated Columns - Displaying Images from oscar zz:如何更改列表项前的New标记的天数设置(days-to-show-new-icon ) from Jianyi ZZ: Uploads with SharePoint 2007 - Antivirus From Eric Cherng [原创] 在dos命令行里面取当天是“星期几" ZZ: 如何禁止掉SharePoint页面个性化?(续) from kaneboy
zz: SharePoint 2007 Folders from Eric Cherng
yier · 2008-04-24 · via 博客园 - yier

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")