Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to change DOS command window font programmatically

Posted on 2003-11-11
4
2,172 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
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 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 125 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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.

856 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