WIN7系统中连接点(Junction Points)

与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

转载于:https://www.cnblogs.com/protorock/archive/2012/12/21/2827316.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值