[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[系统相关] 求助:如何用批处理调整win8系统字体大小

win8系统字体大小我知道在  个性化--显示 里设置,我只是想用批处理双击即可调整的。如下图:


我想把  标题栏 、菜单、 消息框 、调色板标题、 图标 、工具提示 等全部改成13,如何用批处理调整?


你自己跟踪一下注册表看看它是修改了哪个键值

TOP

回复 2# DAIC
修改注册表后必须注销重新登陆才有效果。我要一双击就达到效果的。

TOP

回复 3# nai


    更新注册表后刷新桌面可以达到效果吗?

TOP

回复 4# CrLf
不能,必须注销或重启。

TOP

回复 5# nai


    用鼠标操作的时候也要重启才有效果吗?还是立即生效?

TOP

回复 6# CrLf
立即生效

TOP

本帖最后由 nai 于 2014-10-2 22:57 编辑

原注册表:
  1. Windows Registry Editor Version 5.00
  2. [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
  3. "SmCaptionWidth"="-285"
  4. "SmCaptionHeight"="-285"
  5. "CaptionWidth"="-330"
  6. "CaptionHeight"="-330"
  7. "CaptionFont"=hex:f1,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  8.   00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,\
  9.   00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,\
  10.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  11. "MenuWidth"="-285"
  12. "SmCaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,\
  13.   00,00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,\
  14.   74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,\
  15.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  16. "MenuFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  17.   00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,\
  18.   20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,00,\
  19.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  20. "StatusFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  21.   00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,\
  22.   00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,\
  23.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  24. "MenuHeight"="-285"
  25. "MessageFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  26.   00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,\
  27.   00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,\
  28.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  29. "IconFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  30.   00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,\
  31.   20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,00,\
  32.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
复制代码
需要修改成:
  1. Windows Registry Editor Version 5.00
  2. [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
  3. "SmCaptionWidth"="-390"
  4. "SmCaptionHeight"="-390"
  5. "CaptionWidth"="-390"
  6. "CaptionHeight"="-390"
  7. "CaptionFont"=hex:ee,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  8.   00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,\
  9.   00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,\
  10.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  11. "MenuWidth"="-375"
  12. "SmCaptionFont"=hex:ee,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,\
  13.   00,00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,\
  14.   74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,\
  15.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  16. "MenuFont"=hex:ef,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  17.   00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,\
  18.   20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,00,\
  19.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  20. "StatusFont"=hex:ef,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  21.   00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,\
  22.   00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,\
  23.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  24. "MenuHeight"="-375"
  25. "MessageFont"=hex:ef,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  26.   00,00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,\
  27.   00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,\
  28.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
  29. "IconFont"=hex:ef,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  30.   00,00,01,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,\
  31.   20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,00,00,00,00,00,00,00,\
  32.   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
复制代码

TOP

回复 3# nai
  1. taskkill /f /im explorer.exe
  2. start explorer.exe
复制代码
修改之后,这样可以生效吗?

TOP

回复 9# DAIC
你的代码应该是重启资源管理器吧,我试过重启资源管理器无效。

TOP

别理我,随便说说:gpupdate
?????????
初学BAT,非专业。代码不适当之处还望前辈们多多指点。在此表示感谢!

TOP

回复 11# xxpinqz


    喝醉了居然还记得 gpupdate

    替他翻译下,意思是让楼主试试这个有没有刷新的效果:
  1. gpupdate /Force
复制代码
要是不行,再试试这个:
  1. assoc :=test
  2. assoc :=
复制代码

TOP

不行啊,除了用鼠标点击设置,或注销或重启其它的都不行啊

TOP

本帖最后由 nai 于 2014-10-4 10:21 编辑

这个问题在WIN8中可能是无解了。
我跟踪注册表设置后对比,发现有5万多个不同点,我只修改了
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics  一项,
注销重新登陆后一样达到效果,奇怪了。但是无论怎样修改注册表都要注销或重启。
我甚至修改注册表文件DEFAULT后再启动也不行。
如果说这设置不单单跟注册表有关的话,导入注册表重启又达到效果。
如果说这设置必须要重启的话,而用鼠标点击设置又立即起效。
奇了!怪了!

TOP

返回列表