windows 右键 cmd ls 时无乱码

新建 .reg 文件 然后执行

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere]
@="Open Cmd here"
"Extended"=""


[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand]

@="cmd.exe -noexit -command Set-Location -literalPath '%V'"



[HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor]
"AutoRun"="doskey ls=ls --show-control-chars --color&&set LANG=zh_CN.UTF-8"
原文地址:https://www.cnblogs.com/twfb/p/10854314.html