?
Solved

How to change DOS command window font programmatically

Posted on 2003-11-11
4
Medium Priority
?
2,216 Views
Last Modified: 2013-12-03
I am using the Windows 2000 OS. How can i set the DOS command window font programmatically. I am able to set it's tile using "title", change color using "color" and change size using "mode con" commands. Is there any similar command to set the font size.
0
Comment
Question by:rizsid
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 9723733
You can set that in the registry under "HKEY_CURRENT_USER\Console", the value is "FaceName". If you are creating a desktop shortcut, 'IShellLink' along with 'IShellLinkDataList' will allow you to specify that in a NT_CONSOLE_PROPS structure.
0
 
LVL 22

Assisted Solution

by:grg99
grg99 earned 500 total points
ID: 9724978
Rather than handing you a fish, let's teach you how to bait a hook:

regedit /dump >before

( do the thing with the thing on the menu )

regedit /dump >after

diff before after

0
 
LVL 9

Expert Comment

by:tinchos
ID: 10249009
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: jkr {http:#9723733} & grg99 {http:#9724978}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question