将exe(放置在可移动驱动器上)兼容性高dpi感知模式添加到使用批处理文件的注册表中

问题描述 投票:0回答:1

将exe文件放在可移动驱动器上。如果我从文件设置->兼容性将exe文件转换为高dpi感知模式,则密钥SIGN.MEDIA = {每次都会更改的某个数字} {文件的路径}和密钥〜HIGHDPIAWARENESS的值会出现在注册表。有没有办法可以在运行程序之前编写添加密钥的批处理文件,以便无需手动进行操作就可以在任何计算机上以高dpi感知模式运行该程序?

我阅读了所有这些,但没有找到解决方案:

https://superuser.com/questions/1230346/overriding-high-dpi-scaling-from-the-command-line

https://superuser.com/questions/268339/get-sign-media-id-for-compatibility-mode-in-windows7

https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/10442e93-1ae6-4bb1-8693-d476916f5292/windows-compatibility-setting-for-removable-media-questions?forum=windowscompatibility

对不起我,英语。谢谢。

batch-file compatibility highdpi removable-drive
1个回答
0
投票

仅Windows 10支持高DPI。

© www.soinside.com 2019 - 2024. All rights reserved.