vcpkg 装的时候没有指定x64或者x86结果导致 占用太多了,现在基本用不到x86了所有想删除x86的所有库,太多了,手动费劲,写个脚本
首相确定你的vcpkg 在环境变量里 没有的话自己搜索
打开cmd 窗口
切换到d盘
在这里插入代码片
d:
过滤x86库到d盘的input.txt下
在这里插入代码片
vcpkg list |findstr /r ".*x86-windows" >>input.txt
然后再d盘新建一个txt文本重命名为bat文件 编辑内容
@echo off
for /f %%i in ('type input.txt') do (
vcpkg remove --recurse %%i
)
pause
其实 也可以这样在桌面 建一个bat输入下内容 搞定 因为我都删完了没测试行不行 前边分步来应该没问题
@echo off
vcpkg list |findstr /r ".*x86-windows" >>input.txt
for /f %%i in ('type input.txt') do (
vcpkg remove --recurse %%i
pause
)