将下列文本复制到文件,保存为 *.reg
格式:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREClassesDirectoryackgroundshellcmd_here]
@="在此处打开cmd"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINESOFTWAREClassesDirectoryackgroundshellcmd_herecommand]
@=""C:\Windows\System32\cmd.exe""
[HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellcmdPrompt]
@="在此处打开cmd"
[HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellcmdPromptcommand]
@=""C:\Windows\System32\cmd.exe" "cd %1""
[HKEY_LOCAL_MACHINESOFTWAREClassesDirectoryshellcmd_here]
@="在此处打开cmd"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINESOFTWAREClassesDirectoryshellcmd_herecommand]
@=""C:\Windows\System32\cmd.exe""
双击运行这个reg文件即可。
如果发现添加到右键的中文为乱码,则将UTF-8转为UTF-8无BOM格式的