Login to Account Create an Account
Restoring command prompt defaults?
Posted 24 June 2011 - 11:08 AM
Posted 24 June 2011 - 02:01 PM
Posted 24 June 2011 - 03:12 PM
Windows Registry Editor Version 5.00 ; White color [HKEY_CURRENT_USER\Software\Microsoft\Command Processor] "CompletionChar"=dword:00000009 "DefaultColor"=dword:00000000 "EnableExtensions"=dword:00000001 "PathCompletionChar"=dword:00000009 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor] "CompletionChar"=dword:00000040 "DefaultColor"=dword:00000000 "EnableExtensions"=dword:00000001 "PathCompletionChar"=dword:00000040
http://www.msfn.org/.../page__st__1500 (post #1516)
Edited by myselfidem, 24 June 2011 - 03:20 PM.
Posted 24 June 2011 - 07:16 PM
The command prompt should be orange on black and the registry reflects that but the command prompt still opens with yellow text on a red background. If I check Properties on the command prompt window, they're set to yellow on red. But if I check Defaults on that window, the right colors are there. I can't find a way to make the command prompt revert back to the default values.
Posted 24 June 2011 - 08:44 PM
New shortcuts get their settings from the current registry values. If you don't change the settings on the shortcuts, they'll reflect the current registry values even as the registry values are changed. Once you change the settings on a shortcut, it will retain those new settings forever and independently regardless of how the registry is changed. So each shortcut can have its own colors if set locally. There may (must?) be a value somewhere that determines if an individual shortcut uses the current registry settings or its own, but I don't know where that is.
If I run cmd from Search on the start orb, or if I run Windows\System32\cmd.exe, and change the settings, those new settings are used each time the program is run. Again, regardless of what's in the registry. Unlike the individual shortcuts with their independent settings, if I make changes to the Start Orb ~ Search ~ cmd.exe window, those same settings are used when I open Windows\System32\cmd.exe and vice versa.
So the ONLY time the registry settings are looked at is when a new shortcut is created or an existing unmodified shortcut is executed. Otherwise, cmd uses its last modified settings and each modified shortcut uses its own last settings.
I don't know how to get a modified command prompt shortcut to re-look at the registry for the current values. The only solution I've found is to discard those shortcuts and create new ones which will reflect the current registry settings.
I always thought a shortcut was just a pointer to a program and that it would therefore always execute a new copy of the target program each time it's run, and that the target program would always reflect the current registry settings. Obviously, that's not (always) the case.
Edited by NOTS3W, 24 June 2011 - 08:46 PM.
Posted 24 June 2011 - 10:44 PM
HKEY_CURRENT_USER\ConsoleThere are sub keys corresponding to the settings of each different ways you launched the console. If you just want to reset all the console with the default settings then removing the sub keys should solve the problem.
Edited by allen2, 24 June 2011 - 10:44 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users