1.在网上找了好多发现都不能运行,最后找到一个靠谱的记下来,方便以后使用.

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

 3. 保存运行,右键就可以发现多了一个open cmd here as admin

相关文章:

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