Win11上面安装多个Keil版本,但是需要指定默认的版本,如果Win11自己的指定方式不成功,可以用下面的方法
命令行强制关联,适合你要批量统一
假设你要强制.uvprojx用:
D:\Keil_v5_37\UV4\UV4.exe
``
可以用管理员 CMD 执行:
BAT
assoc .uvprojx=Keil.uVision.Project
ftype Keil.uVision.Project="D:\Keil_v5_37\UV4\UV4.exe" "%1"
如果还有.uvproj:
BAT
assoc .uvproj=Keil.uVision.Project.Legacy
ftype Keil.uVision.Project.Legacy="D:\Keil_v5_37\UV4\UV4.exe" "%1"
``
.uvmpw:
BAT
assoc .uvmpw=Keil.uVision.MultiProject
ftype Keil.uVision.MultiProject="D:\Keil_v5_37\UV4\UV4.exe" "%1"
验证当前关联:
BAT
assoc .uvprojx
ftype Keil.uVision.Project
``
