Windows 10快速在指定目录打开命令行
2024-09-02 11:18:29
一、我们在想要到达的目录上按住shift键并点击鼠标右键。看到了吗,这时候在弹出菜单里多了一个选项,就是“在此处打开命令窗口”,我们点开看一下。
二、不过有时候我们需要以管理员的权限来打开命令行,这时候我们需要自行添加一个脚本,方便操作,你可以复制下面的代码然后保存为.reg格式。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open cmd here as Admin"
"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]
@="Open cmd here as Admin"
"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]
@="Open cmd here as Admin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
运行保存好的reg文件,进行注册表导入
最新文章
- bzoj1503--treap
- apachetop 实时监测web服务器运行状况
- Flume(4)实用环境搭建:source(spooldir)+channel(file)+sink(hdfs)方式
- Android快速开发框架LoonAndroid (转)
- unity3d - new 不出的单例
- Windows环境下使用cygwin ndk_r9c编译x264
- COJN 0484 800502电池的寿命
- jquery实现仿select列表的即时搜索及拼音搜索
- Vuex 教程案例:计数器以及列表展示
- SSM-SpringMVC-03:SpringMVC执行流程一张有意思的图
- VS2010动态链接库的生成及调用(C++)
- 一次基于innobackupex备份及binlog的单表恢复操作
- PE知识复习之PE的重定位表
- Sublime text 3搭建Python开发环境及常用插件安装
- 二 分析easyswoole源码(启动服务)
- 内存大厂威刚发布速度高达550MB/s的固态硬盘SU750
- 如何为APK签名?
- mybatis 异常 too many connections 解决方案 mysql
- Jquery判断IE6等浏览器的代码
- [移动端WEB] 移动端网站响应式布局之";rem";,CSS3 rem使用方式