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 运行一个程序,发现可以编译通过,这样就表示成功了。

 

评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值