Visual Stdio 2019 生成的Windows kits文件夹如何移动到其他盘
安装visual stdio 2019的时候,我基本上是安装到D盘的,后来发现D盘莫名其妙多出来一个“Windows kits”,让我这个强迫症难以忍受,于是到网上找教程,发现真的可以移动的。
How to move Windows Kits Folder to other disks?
Try the following technique:
- Close all programs, move the “Windows Kits” folder to another disk, for example to “D:\Windows Kits”; remove the original folder.
- Start the “Command Prompt (Admin)”. It can be found in Start menu. If you find “PowerShell (Admin)”, then start it and execute “cmd”. Then run the command:
mklink /J "C:\Program Files (x86)\Windows Kits" "D:\Windows Kits"
You should re-see “Windows Kits” at original location on disk C, but now it is a “junction” and does not take space. The programs do not need re-configuration.
移动Windows kits文件夹
找到你安装的Windows kits的文件夹,然后把它整个截切到想要移动的地方。
比如说,我就是把"D:\Windows kits"整个剪切到"D:\DevelopmentTool\VisualStdio2019\Windows Kits"。
PS:需要注意的是这里是剪切文件夹,而不是复制,不然在你cmd下使用mklink提示“文件已经被创建”。
运行cmd管理员模式
按“win + Q” 然后键入“cmd”,点击右边的“以管理员身份运行”

然后在命令栏中输入
mklink /J "D:\Windows Kits" “D:\DevelopmentTool\VisualStdio2019\Windows Kits”
在你原来的地方D盘下面会出现一个快捷方式,然后打开visual stdio 2019 运行一个程序,发现可以编译通过,这样就表示成功了。
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)