Windows – Command Prompt shows up and disappears immediately

command linewindows

When I open Start > Run, type cmd.exe and press Enter, a black window shows up and disappears immediately.

  • I've tried opening it from C:\windows\System32\cmd.exe
  • I've tried cleaning the PATH environment variable

However none of these have made any difference. Does anyone have an idea what the problem could be?

Best Answer

I had this problem and solved it in the following way:

Go to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor

It has an AutoRun value set to (Exit). Delete this value and the Command Prompt should work again.