Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 8 Posts 4 Joined 2009-01-08 15:14 17-year member UID 136123 Gender Male
Status Offline
The properties of the Windows command prompt window can be changed by clicking Properties from the upper-left corner of the window to bring up the properties panel. But because I often run scripts, and there is also a lot of information displayed on the screen, sometimes it goes on for many screens. Now I want to use a script to set the properties of the Windows command prompt window. How can I change them? Permanent changes would be best. As far as I know, mode con can change the width and height, and color can change the colors, but they can only be written into a program, and the changes are not permanent either. But the most critical thing is that I don't know how to change the buffer. I hope the experts can enlighten me, many thanks
————————————————————————————————
Moved from DOS Troubleshooting & Problem Discussion (Answer Room)
Obviously posted in the wrong section. Since this is a forum newbie, no penalty will be given for now; please pay attention in the future.
——Administrator
————————————————————————————————
4. Meaning of the key values:
All key values are expressed in hexadecimal
Window position-----WindowPosition---the high 4 digits are the top, the low 4 digits are the left.
For example, 00640104 means 64H=100 from the top edge of the screen, 104H=260 from the left edge of the screen
Font size----------FontSize---------the high 4 digits are the character height, the low 4 digits are the character width
For example, 00100008 means font width×height=08H×10H=8×16
Fullscreen--------FullScreen-------0: window 1: fullscreen (WindowPosition is invalid at this time)
Window size-------WindowSize-------the high 4 digits are the height, the low 4 digits are the width
Default 00190050, meaning height 19H=25 lines, width 50H=80 columns
Buffer size-------ScreenBufferSize-the high 4 digits are the height, the low 4 digits are the width
Default 012c0050, meaning height 12cH=300 lines, width 50H=80 columns
Font color--------ScreenColors-----the low 2 digits are the same as the font color value in the color setting
Font type---------FontFamily-------36: NSimSun 30: raster font
Current code page-CodePage---------default 3a8H=936: ANSI/OEM-Simplified Chinese GBK
Discard old copies-HistoryNoDup-----0: do not discard 1: discard old copies
5. Relationship between custom and default:
The system first looks for the relevant settings in custom; if there are none in custom, it then looks in default.
That is, custom has higher priority than default.