原创

Package Cache 可以删除吗?

结论

这个答案就是不建议“删除”

怎么办?

虽然不建议删除,但是我们可以将这个文件夹移动到其他的盘符,以节省C盘的容量。
C:\ProgramData\Package Cache文件夹移动到了F:\Program目录中,所以新路径就是F:\ProgramData\Package Cache

然后使用管理员打开cmd。

输入:mklink /J "C:\ProgramData\Package Cache" "F:\ProgramData\Package Cache"

回车即可,CMD提示:为 C:\ProgramData\Package Cache <<===>> F:\ProgramData\Package Cache 创建的联接

你会发现打开C:\ProgramData 后,Package Cache没变啊。。。。还是原来味道。:)

英文版

Can I delete the the folder C:\ProgramData\Package Cache\?

There have been conflicting reports about whether the absence of this folder (as a consequence of deleting it) will actually and in all cases cause issues with the visual studio installation, ie during normal operation, during reinstall, patch/upgrade, repair install, or uninstall.

解决方案如下:

  1. 移动这个目录到你的其他盘符中。

  2. 创建链接(Create the junction)

  3. 两种方式来创建

一、使用Windows 命令行的方式 原生的方式来进行创建软链接
Option 1. (natively): Just issue the built-in Windows Vista / 7 / 8 command and the cmd prompt:

在CMD中输入:mklink /J 旧的目录 新的目录 (mklink /J oldpath newpath)

二、使用LES工具来创建(个人觉得没必要。使用CMD好处多多)
Option 2. (using a tool) : Another GREAT alternative is a free handy utility I've been using for years called "Link Shell Extension" .LSE is free and you can find it here (or Google for it): http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html

LSE allows you to create symlinks, hardlinks, junctions, smartcopies, smartclones, smart mirrors, smart moves, splices, multiple sources, and bunch of other stuff I found too confusing to read, frankly.But, it's a brilliant free product that creates a Windows Explorer context menu that allows you right-click on your LINK-TARGET folder then drag it to where you'd like to create the actual link.You can of course rename the link to anything you'd like.

原文来自:
http://superuser.com/questions/455853/can-i-delete-the-the-folder-c-programdata-package-cache

本文来自:Package Cache 可以删除吗?-小码农,转载请保留本条链接,感谢!

温馨提示:
本文最后更新于 2022年03月20日,已超过 769 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我
正文到此结束
本文目录