Win10--在右键菜单中添加"在此处打开CMD窗口"

other / 2024年04月19日 16时10分 / 233人浏览

Win10--在右键菜单中添加"在此处打开CMD窗口"

需求描述

        在某个目录下时,想直接打开CMD.exe,然后自动进入当前的路径,这样可以提高速度。

方法介绍

        新建文本文档,将下边内容复制进去,保存为ANSI格式,文件名后缀改为.reg,双击运行此reg即可。(必须是ANSI格式,否则汉字乱码)。

 

Windows Registry Editor Version 5.00
 
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="在此处打开CMD窗口"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
 
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="在此处打开CMD窗口"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
 
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="在此处打开CMD窗口"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""