我的系统上安装了 Windows 7 64 位。我对“C:\ProgramData\Application Data”文件夹有疑问。
此处和此处“应用程序数据”是一个连接点,指向C:\程序数据。因此,我希望以下命令列出 C:\ProgramData 文件夹的内容(我的 ProgramData 文件夹包含 McAfee、Microsoft、Adobe 等文件夹)。
<块引用>
cd /d“c:\ProgramData\应用程序数据”
目录
但是我没有看到列出的任何内容...但是,如果我要深入遍历 1 个目录并列出内容,那么会列出该目录下的所有文件夹。 。
<块引用>
cd /d "c:\ProgramData\Application Data\McAfee
目录
我不明白这种行为。有人能解释一下吗?
I have Windows 7 64 bit installed on my system. I have a question about "C:\ProgramData\Application Data" folder.
It is mentioned here and here that "Application Data" is a Junction point which points to C:\ProgramData. So, i would expect the following command to list the contents of the C:\ProgramData folder (my ProgramData folder has folders like McAfee, Microsoft, Adobe, etc..)..
cd /d "c:\ProgramData\Application Data"
dir
However i do not see anything listed...However, if i were to traverse 1 more directory deeper and list the contents, then all the folders under that directory are listed...
cd /d "c:\ProgramData\Application Data\McAfee
dir
I do not understand this behaviour. Would anyone explain?
发布评论
评论(1)
这是为了允许采用旧名称的程序向后兼容,但也防止程序递归树并找到两个副本。
这是来自 Raymond Chen - 不过,我认为他是在他的博客上做到的,所以也许还有更多内容。
It's to allow backward compatibility for programs that assume the old name but to also prevent programs recursing the tree and finding both copies.
Here's an article about this from Raymond Chen - I thought he did it on his blog, though, so maybe there's more there.