在windows 中经常用用到命令行窗口,定位到指定目录有点麻烦,如果 右键目录就能运行命令行那就方便多了。
方法: 将以下文件复制到文本中,并保存为命令行.reg ,注意后缀名,再双击运行运行,导入注册表
Windows Registry Editor Version 5.00 ;from: blog.su61.com [-HKEY_CLASSES_ROOT\Directory\shell\runas] [HKEY_CLASSES_ROOT\Directory\shell\runas] @="命令提示符(管理员)" "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] @="命令提示符(管理员)" "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] @="命令提示符(管理员)" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Drive\shell\runas\command] @="cmd.exe /s /k pushd \"%V\""
如果不需要这个功能,可以去除
创建一个文本文件,复制一下内容,保存为清理.reg ,
Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\Directory\shell\runas] [-HKEY_CLASSES_ROOT\Directory\Background\shell\runas] [-HKEY_CLASSES_ROOT\Drive\shell\runas]
**********************华丽的分割线*****************************
文件 下载 : 压缩包里有命令行提示符(管理员).reg 和 清理.reg