How to save and restore options for cmd.exe window?

7,140

Solution 1

Some of the options are stored in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor and the rest should be in HKEY_CURRENT_USER\Console and if you are looking for values to edit I would start with looking here. Once you get it the way you want you could easily extract it to a reg file or write it in a batch file.

Solution 2

Do you really need to find where it is stored in the registry, since it only takes a few seconds to configure it?

ie,

Run cmd.exe
Click on the icon at the top left of the window.
Click on Properties.
Click on Font.
Select your new font and size 
Press return (or click on OK)

The settings will be saved for next time.

It would probably be quicker doing it this way than editing the registry.

Share:
7,140

Related videos on Youtube

sergtk
Author by

sergtk

Updated on September 18, 2022

Comments

  • sergtk
    sergtk over 1 year

    After installing Windows Vista when I run cmd.exe the font size is very small, not suitable size of console etc.... I need to configure it.

    I suppose my configuration is stored in registy - I want to backup it and have ability to restore later, e.g. for windows reinstall or for new user. But I was not able to find it.

    Where info about cmd.exe window is stored? Thanks!

    • Darokthar
      Darokthar over 12 years
      When I'm remembering correctly it is stored in the .lnk Simply create a link to cmd and configure it. rightclick the link then properties.
  • sergtk
    sergtk over 12 years
    Do you think that I asked question just for fun? ;) I don't want to edit in registry, but only run reg-file in one click. Moreover there are software which run in old text mode and I expect they can be configured in the same way.
  • sgmoore
    sgmoore over 12 years
    Try looking in HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe
  • SK23
    SK23 over 10 years
    HKEY_CURRENT_USER\Console seems to be a good place to configure font for all cmd.exe's windows. I've used this procedure: Set the desired parameters in an instance of cmd.exe using GUI, then copy the settings to HKEY_CURRENT_USER\Console from its subfolder.