将 C:\Windows\Installer 移动到 D: 分区后创建指向新位置的符号链接

将 C:\Windows\Installer 移动到 D: 分区后创建指向新位置的符号链接

C:\Windows\Installer我正在尝试通过将分区移动到D:驱动器(以下)来在我的 C: 分区(一个 SSD 驱动器)上腾出一些空间本指南)。

最后一步是:

启动命令提示符(以管理员身份)并执行以下命令:

junction.exe c:\windows\installer d:\windows\installer

当我这样做时,我收到错误:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>junction.exe C:\Windows\Installer D:\Windows\Installer

Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

Error creating C:\Windows\Installer:
Cannot create a file when that file already exists.

当我尝试删除该文件时,我得到:

C:\Windows\system32>rmdir C:\Windows\Installer
The directory is not empty.

当我尝试查看文件夹内的内容时,我得到了:

C:\Windows\system32>cd C:\Windows\Installer

C:\Windows\Installer>dir
 Volume in drive C has no label.
 Volume Serial Number is F8DE-4477

 Directory of C:\Windows\Installer

File Not Found

那么,如何创建到新位置(Windows 7)的符号链接?

答案1

遇到了同样的问题,在删除具有管理员权限的文件夹后(这是一个隐藏的系统文件夹,因此您可能看不到它)我收到了此错误消息

Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

Error creating C:\Windows\Installer:
Zugriff verweigert

但没问题,以管理员身份运行命令提示符后它就起作用了。

顺便说一句:您可以在这里获取该工具:http://technet.microsoft.com/en-us/sysinternals/bb896768

相关内容