Windows 10快速在指定目录打开命令行
2018-01-16 14:41
246 查看
转自:http://blog.csdn.net/xfyangle/article/details/75030062
一、我们在想要到达的目录上按住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]
[plain] view
plain copy
<span style="font-size:14px;">@="cmd.exe /s /k pushd \"%V\""</span>
运行保存好的reg文件,进行注册表导入
一、我们在想要到达的目录上按住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]
[plain] view
plain copy
<span style="font-size:14px;">@="cmd.exe /s /k pushd \"%V\""</span>
运行保存好的reg文件,进行注册表导入
相关文章推荐
- Windows 10快速在指定目录打开命令行
- windows下在指定目录下打开命令行
- windows如何方便快速在指定文件夹打开命令行
- Windows中快速在指定文件打开命令行
- windows使用命令行快速删除当前目录下所有指定后缀的文件
- Windows系统快速打开指定APP
- windows+cygwin用命令行打开窗口目录
- Windows命令行形式打开服务器目录
- Windows 10,快速用右键获取管理员权限,可用于整个目录文件夹
- 如何方便快速在指定文件夹打开命令行
- Python调Windows的资源管理器打开指定目录
- windows在文件夹快速打开命令行
- MAC下快速打开指定目录
- 快速在指定文件夹打开命令行
- windows在文件夹快速打开命令行
- [工具]Python调windows的资源管理器打开指定目录
- 背水一战 Windows 10 (101) - 应用间通信: 通过协议打开指定的 app 并传递数据以及获取返回数据, 将本 app 沙盒内的文件共享给其他 app 使用
- windows在文件夹快速打开命令行
- 如何方便快速在指定文件夹打开命令行
- 背水一战 Windows 10 (106) - 通知(Toast): 通过 toast 打开协议, 通过 toast 选择在指定的时间之后延迟提醒或者取消延迟提醒