- Win+E 打开资源管理器
- Win+R 打开运行窗口
- Win+X 打开菜单项
Q&A
1.怎么在某个文件夹下打开命令行工具?
cmd
打开该文件夹,然后在上面的路径显示框中输入cmd或powershell,然后回车,即可在当前文件夹下打开命令行工具,并且路径是当前文件夹。
![](https://img.haomeiwen.com/i14414020/88be902ff82ff69a.png)
powershell
打开该文件夹,然后按住Shift并在文件夹内空白处单击鼠标右键,即可让右键菜单出现打开Powershell的选项。
![](https://img.haomeiwen.com/i14414020/c2c731dc2175d3cc.png)
Git Bash
打开该文件夹,然后在文件夹内空白处单击鼠标右键,即可让右键菜单出现打开Git Bash的选项。
![](https://img.haomeiwen.com/i14414020/b717368fd3721b4c.png)
2.如何进入指定目录?
cd /d
cd /d 不仅可以更改共组目录,还同时可以更改驱动器。
![](https://img.haomeiwen.com/i14414020/bc9345e95c741e04.png)
拓展
以管理员身份运行
将代码复制到一个新建文本中保存并重新命令为reg文件。
![](https://img.haomeiwen.com/i14414020/0c3e9085b961b9b1.png)
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Run cmd As Administrator"
"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]
@="Run cmd As Administrator"
"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]
@="Run cmd As Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
"HasLUAShield"=""
@="Run cmd As Administrator"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
"以管理员身份运行cmd"卸载
![](https://img.haomeiwen.com/i14414020/6a7d5964d6c2d7e6.png)
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]
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
更新中......
2018-12-30 更新
网友评论