Tarandeepsingh
Tarandeepsingh

Reputation: 175

command prompt color glitched

my command prompt was working just fine yesterday , today when i opened cmd its color was changed to light blue , i tried changing defaults but it didn't work , i tried color 07 it worked but its temporary and when i restart its color remains light blue so is there any way to fix this thing , i am attaching screenshot of settings below enter image description here

yes i read an answer suggesting editing color in register , i looked into that but "command processor" is missing in my regedit , screenshot attached below enter image description here

Upvotes: 0

Views: 268

Answers (1)

Compo
Compo

Reputation: 38623

The key you show as non-existent should be in your registry. Something or someone has removed it, either maliciously, accidentally, or due to a lack of understanding its necessity.

You can simply add the information back where it should be. The simplest way to do that is to open a Command Prompt window, and copy then paste each of these lines, one at a time into it, pressing the enter key after each paste:

%__AppDir__%reg.exe Add "HKCU\Software\Microsoft\Command Processor" /V CompletionChar /T REG_DWORD /D 9 /F 1> NUL
%__AppDir__%reg.exe Add "HKCU\Software\Microsoft\Command Processor" /V DefaultColor /T REG_DWORD /D 0 /F 1> NUL
%__AppDir__%reg.exe Add "HKCU\Software\Microsoft\Command Processor" /V EnableExtensions /T REG_DWORD /D 1 /F 1> NUL
%__AppDir__%reg.exe Add "HKCU\Software\Microsoft\Command Processor" /V PathCompletionChar /T REG_DWORD /D 9 /F 1> NUL

After you have done that, just to be sure that it wasn't malicious behavior, reboot your PC, and upon boot, check the key is still there. (it may be worth rebooting and checking a few times just to be sure).

You can check if the key still exists by opening a Command Prompt window and entering the following:

%__AppDir__%reg.exe Query "HKCU\Software\Microsoft\Command Processor">NUL 2>&1&&(Echo Key exists)||Echo Key not found

If you receive back a Key not found message, you should check your PC for malware.

Upvotes: 2

Related Questions