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

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - protorock

WPF:通过Window.DataContext实现窗口间传值 How to add dependency on a Windows Service AFTER the service is installed 实现泛型IEnumerable接口 关于Local System/Local Service/Network Service账户 vs2010 c# 管理win7防火墙 程序集强名称(Strong Name)延迟签名与签名 VISUAL STUDIO 2010 单元测试 Windows Server 2008 R2上Ext.net 生产环境搭建 在Windows7 (SP1)配置IIS7.5 + .Net Framework 4.0.30319 将Google Map 与ASP.NET AJAX 扩展集成 web.config 加密步骤 - protorock - 博客园 GridView 与自定义对象的绑定和分页 在Windows 2003 中发布 ASP.NET 2.0 + SQL SERVER Express SQL Server 2005 Express Edition 用户实例 在 windows2003 Server VS2005 安装 .Net 3.0 .net framework 2.0,3.0与3.5之间的关系 SharpMap AjaxMapControl 中 Zoomin/Zoomout 操作时冻结问题 Sharpmap AjaxMapControl 分析 HTTP 协议概要(二) 持久连接
WIN7系统中连接点(Junction Points)
protorock · 2012-12-21 · via 博客园 - protorock

与xp、win2003相比,win7、win2008(包括win2008R2)系统中,存放用户数据(user data)和系统数据(system data)的默认文件夹位置发生变化。例如,在xp中存放用户数据的文件为%SystemDrive%\Documents and Settings;在win7中则为%SystemDriver%\User。这样的变化无疑对以前应用程序能否在win7下顺利带来兼容性问题。为了最大程度地保证对以前在xp运行程序的兼容性,在win7中采用了junction points(连接点)技术。通过这个技术,原来在xp下运行的程序对%SystemDrive%\Documents and Settings文件夹下的数据存取操作,能自动的更改到%SystemDriver%\User文件夹。

我们可以将junction point看做是一个快捷方式(shortcut) ,它具有以下特性:

  • 具有FILE_ATTRIBUTE_REPARSE_POINT, FILE_ATTRIBUTE_HIDDEN, and FILE_ATTRIBUTE_SYSTEM属性
  • 具有ACLs(Access Control Lists),拒绝everyone的读操作

这样,在win7系统中,只有具有存取权限,旧程序对老式路径的调用会通过 junction point,转而存取win7下的用户数据文件或系统数据文件夹。

例如win7为每个用户创建连接点,将旧式的 C:\Users\username\My Documents指向win7下C:\Users\username\Documents。 下表是

xp、windows2003中的路径

win7、windows2008中的路径

\Documents and Settings

\Users

\Documents and Settings\Default User or
%LOGONSERVER%\NETLOGON\Default User

\Users\Default or
%LOGONSERVER%\NETLOGON\Default

\Documents and Settings\<user>\My Documents

\Users\<user>\Documents

\Documents and Settings\<user>\My Documents\My Pictures

\Users\<user>\Pictures

\Documents and Settings\<user>\My Documents\My Music

\Users\<user>\Music

\Documents and Settings\<user>\Favorites

\Users\<user>\Favorites

N/A

\Users\<user>\Contacts

N/A

\Users\<user>\Downloads

N/A

\Users\<user>\SavedGames

\Documents and Settings\<user>\Application Data

\Users\<user>\AppData\Roaming

\Documents and Settings\<user>\Local Settings\Application Data

\Users\<user>\AppData\Local

\Documents and Settings\<user>\Start Menu

\Users\<user>\AppData\Roaming\Microsoft\Windows\ Start Menu

\Documents and Settings\All Users

\Users\Public

\Documents and Settings\All Users\Start Menu

\ProgramData\Microsoft\Windows\Start Menu

\Documents and Settings\All Users\Desktop

\Users\Public\Desktop

参考:

1. junction point in vista 

2. managing roaming user data delployment guide