How to save and restore options for cmd.exe window?
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.
Related videos on Youtube
sergtk
Updated on September 18, 2022Comments
-
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 over 12 yearsWhen 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 over 12 yearsDo 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 over 12 yearsTry looking in HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe
-
SK23 over 10 years
HKEY_CURRENT_USER\Console
seems to be a good place to configure font for allcmd.exe
's windows. I've used this procedure: Set the desired parameters in an instance ofcmd.exe
using GUI, then copy the settings toHKEY_CURRENT_USER\Console
from its subfolder.