How to make the console font bigger when running a batch?

自闭症网瘾萝莉.ら 提交于 2021-01-28 08:09:51

问题


I have the following batch file which I use to run my Minecraft server: (run.bat)

@echo off
java -Xmx1G -jar mcserver.jar

I looked on many forums, and I'm too lazy to begin studying batch code, so I decided to ask here. I want to insert a passage of code that will set the font size in the console to a certain size (for example, 18px). BUT: I don't want the console to run with big font on every other batch file or cmd prompt opened... only in this file. I appreciate any answers :)

  • I use Windows 10.

回答1:


This should help you (simplest one)

  1. Create a shortcut to your batch file (I assume you have a batch file)
  2. Go to Properties of the Shortcut
  3. Look for the tab Fonts
  4. Choose 8x12 or 16x12
  5. Save the shortcut

Now if you run with the same shortcut it should show as per font size selected

Here are screenshots



来源:https://stackoverflow.com/questions/42481782/how-to-make-the-console-font-bigger-when-running-a-batch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!