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

提供个思路使用SETRES得到屏幕分辨率
宽W除以2 减 批处理窗口宽除以2得到居中的X坐标
高H除以2 减 批处理窗口高除以2得到居中的Y坐标
代入注册表 需要转换一下
  1. reg add "HKCU\Console" /f /v "CurrentPage" /t REG_DWORD /d 2
  2. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "WindowPosition" /t REG_DWORD /d 13107500
  3. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "CodePage" /t REG_DWORD /d 936
  4. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "ScreenBufferSize" /t REG_DWORD /d 163840120
  5. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "WindowSize" /t REG_DWORD /d 1638480
  6. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "FontSize" /t REG_DWORD /d 1048584
  7. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "FontFamily" /t REG_DWORD /d 54
  8. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "FontWeight" /t REG_DWORD /d 400
  9. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "FaceName" /t REG_SZ /d "新宋体"
  10. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "HistoryBufferSize" /t REG_DWORD /d 999
  11. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "NumberOfHistoryBuffers" /t REG_DWORD /d 5
  12. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "CursorType" /t REG_DWORD /d 0
  13. reg add "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /f /v "InterceptCopyPaste" /t REG_DWORD /d 0
复制代码

TOP

返回列表