CMD.exe closes immediately after calling (Win7 64)

前端 未结 6 775
说谎
说谎 2021-02-05 07:54

Has anyone found such behavior when Command Processor (cmd.exe) closes immediately after calling it? I’ve run McAfee AV and Windows System File Check (sfc.exe) and nothing wron

6条回答
  •  无人共我
    2021-02-05 08:14

    I've had similar problem - cmd.exe was closing immediately after starting. I was able to keep it running by executing cmd.exe /K cmd.exe, but it was closing after any invalid command. I've found out that my problem was caused by non default code page:

    C:\>chcp
    Active code page: 65001
    

    To fix the problem I've removed registry entry:

    [HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
    "CodePage"=dword:0000fde9
    

    Another solution is to change cmd.exe font from raster fonts to a true type one.

提交回复
热议问题