Windows XP 与 Vista:NTFS 连接点 [英] Windows XP vs Vista: NTFS Junction points

查看:32
本文介绍了Windows XP 与 Vista:NTFS 连接点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题: 我在 Windows XP 中严重依赖 NTFS 连接点,即使它们显然不是操作系统的官方"功能.现在微软慷慨地将 NTFS 连接点作为 Vista 的官方部分,但显然他们也有意破坏它们.现在,当我将该驱动器插入 Vista 盒时,我在便携式 USB 驱动器上创建的 WinXP 连接点不起作用.

Problem: I relied heavily on NTFS Junction points in Windows XP, even though they apparently were not an "official" feature of the operating system. Now MSFT has generously made NTFS Junction points an official part of Vista, but apparently they also intentionally broke them. Now my WinXP-created junction points on portable USB drive don't work when I plug that drive into a Vista box.

问题: 是否有人有脚本可以强制在 XP 上创建的 NTFS 联结在 Vista 和 XP 中正常工作?是否有文档或规范解释了 MSFT 是如何导致这种损坏的?

Questions: Does anyone have a script that will force NTFS junctions created on XP to work correctly within BOTH Vista and XP? Is there documentation or a spec that explains what MSFT did to cause this breakage?

更新:感谢 Ulrich 和 Scott 提出的后续问题.我用来创建连接的工具是 Systinternals Junction v1.05我不能确定所有这些都是使用现在由 MSFT 托管的应用程序的特定版本创建的.

Update: Thanks, Ulrich and Scott, for your follow-up questions. The tool I used to create the junctions was Systinternals Junction v1.05 although I can't say for sure that all of them were created with that specific version of the now-MSFT-hosted app.

至于如何使用连接点......假设有一个外部Q Drive"设备:

As far as how the junctions are used ... assuming an external "Q Drive" device:

  • 1) Q Drive 上的某些项目是从 Q Drive 上的一个位置指向 Q Drive 上另一个位置的连接点(例如,我需要在多个位置放置一个文件夹的情况,以及传统的 .lnk 样式快捷方式不起作用)

  • 1) Some items on the Q Drive are junctions that point from one place on the Q Drive to another place on the Q Drive (e.g., cases where I needed to have a folder in more than one place, and a traditional .lnk style shortcut would not work)

2) 有些项目是从 C 驱动器直接指向 Q 驱动器上位置的连接点.当 Q Drive 实际上不是连接盒(XP 或 Vista)时,这些项目显然不起作用,但是当在 Vista 上连接时,连接点在 XP 上不起作用.

2) Some items are junctions that point from the C Drive directly to locations on the Q Drive. These items obviously do not work when the Q Drive is not actually connected box (XP or Vista), but when connected on Vista, the junctions do not work as on XP.

推荐答案

联结和符号链接是两种不同类型的 NTFS 对象,并不完全相同.为什么您的连接在 Vista 中无法识别是个谜,但连接功能在 Vista 中仍然存在,并且不会被故意破坏.

Junctions and symbolic links are two different types of NTFS objects and are not exactly the same thing. Why your junctions are not recognized in Vista is a mystery, but the junction functionality still exists in Vista and it not purposefully broken.

您可以使用 mklink (http://technet.microsoft.com/en-us/library/cc753194.aspx) 创建软链接(默认)、硬链接 (/h) 或联结 (/j).sym links 对junctions 的最大改进是sym links 可以引用文件或目录(junctions 只是目录),也可以引用网络共享(junctions 不能).

You can use mklink (http://technet.microsoft.com/en-us/library/cc753194.aspx) to create soft links (the default), hard links (/h), or junctions (/j). The biggest improvement of sym links over junctions is sym links can reference files OR directories (junctions are directory only) and the can reference network shares as well (junctions cannot).

但最重要的是它们是不同的.无法告诉您为什么 Vista 无法识别您现有的连接点.您仍然可以按照上述方法创建它们.

But the bottom line is they are different. Can't tell you why your existing junctions are not recognized by Vista though. You can still create them as described above.

另一篇文章 (LinkMagic) 中引用的免费软件实用程序是让您的连接点重新工作的最佳选择.或者使用 mklink 重新创建它们.

There freeware utility referenced in another post (LinkMagic) is your best bet to getting your junctions working again. Or recreate them with mklink.

这篇关于Windows XP 与 Vista:NTFS 连接点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆