win10 shift+鼠标右键,默认没有在当前文件夹下打开cmd功能

新建一个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]

 


双击运行 ,即将该命令注册到注册表。 
然后 在当前文件夹下右键 就可以看到 “Open cmd here as Admin” 。

相关文章:

  • 2021-06-07
  • 2021-11-04
  • 2021-07-22
  • 2022-12-23
  • 2021-11-30
  • 2021-11-26
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-02-24
  • 2022-01-22
  • 2022-12-23
  • 2021-11-05
  • 2021-10-20
  • 2021-12-22
相关资源
相似解决方案