2
Step by step solution that I used :
Open
regedit.exe
Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
.If the
Autorun
string value exists, delete it.Right Click > New > String value.
Name it
Autorun
.Right Click > Modify
Replace the
Value data
withcolor 0f & color 0f
.Press OK.
You can replace color 0f
with color (any color)
.
Some helpful articles :
http://www.herongyang.com/Windows-Security/PWS-Command-Processor-AutoRun-Registry-Value.html
https://sourcedaddy.com/windows-7/using-autorun-execute-commands-when-command-prompt-starts.html
Hope this helps :)
Thanks for sharing the solution. – Ricardo Bohner – 2020-01-18T14:41:29.700
@RicardoBohner: No problem – BrickMan – 2020-01-19T07:17:30.697
Try to copy your cmd.exe into some folder not listed in %PATH% - does it is started with the same issue? Check if cmd.exe is altered/damaged. Does some command-line utility (ping, for example) is started without any problems? Check session and global environ variables, cmd.exe properties, shortcuts, etc... Try to set "use ps in cmd window" and then revert back. – Akina – 2020-01-17T05:53:34.197
Is this a geneal fonts problem in windows or only in command prompt? – Ricardo Bohner – 2020-01-17T10:17:20.177
@Akina : All apps start correctly. cmd.exe is not damaged. Global environ variables are normal. – BrickMan – 2020-01-17T10:46:06.377
@RicardoBohner: Only cmd. – BrickMan – 2020-01-17T10:46:26.487
Try to copy your cmd.exe into some folder not listed in %PATH% - does it is started with the same issue? Create a shortcut to such file specifying full pathname for it and the starting folder equal to its folder. Does this shortcut is started normally? – Akina – 2020-01-17T10:53:00.537
@Akina : Creating a shortcut to
cmd.exe
doesn't work. Copying cmd to a folder not listed in %path% also doesn't work. – BrickMan – 2020-01-17T10:57:01.143I would run regedit and look at all the folders and keys that have the 'cmd.exe' substring for the presence of obviously unnecessary additions to the execution line. Searching by the folder/parameter name would help to understand does the parameter value is correct. – Akina – 2020-01-17T11:05:01.480
@Akina: Nvm, found a solution. Check my solution below – BrickMan – 2020-01-17T11:16:09.923
I have seen. But this is more troubleshooting regime than normal one, some new settings will be disabled, some additional abilities will be unavailable... I'd prefer to heal the reason, not symptoms. – Akina – 2020-01-17T11:24:05.240
Yes, I know. I just need a functional cmd that can run commands, I don't need fancy settings. – BrickMan – 2020-01-17T11:28:24.483
Try changing the color of the text of the command prompt to yellow with black background with the following command: color 0e – Ricardo Bohner – 2020-01-17T16:33:59.750
@RicardoBohner: I can't type anything in the CMD prompt. – BrickMan – 2020-01-18T04:58:49.177
Are you sure? Maybe you can type but you only don't see what you type. Have tyou tried opening the command prompt with another user on you computer? If you don't have anther user you could create one> You could also use cmd.exe from powershell, in a powershell you could type cmd.exe and use powershell as if it was cmd.exe.
You could also try the solution proposed here: https://superuser.com/questions/609470/how-to-reset-the-looks-of-the-command-prompt-window-in-windows
Yes, I use cmd in powershell now. Haven't tried changing the color. Using cmd on another user doesn't fix it. – BrickMan – 2020-01-18T07:15:18.167
Changing the color works, see my answer below. – BrickMan – 2020-01-19T07:19:57.890