转载:https://jingyan.baidu.com/article/2d5afd6930107a85a2e28e2d.html
第一步:新建一个文本文档,输入如下代码,然后另存为OpenCmdHere.reg文件
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere] @="在此处打开命令提示符" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHerecommand] @="cmd.exe /s /k pushd "%V"" [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand] @="cmd.exe /s /k pushd "%V"" [HKEY_CLASSES_ROOTDriveshellOpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTDriveshellOpenCmdHerecommand] @="cmd.exe /s /k pushd "%V"" [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenCmdHerecommand] @="cmd.exe /s /k pushd "%V""
第二步:保存好OpenCmdHere.reg文件之后,双击运行,如下图所示:
第三步:鼠标右键win10系统桌面,可以看到已经添加上“在此处打开命令窗口”项,点击就可以打开命令行窗口,如下图所示: