以管理员身份在当前目录打开命令行窗口

Windows Registry Editor Version 5.00  
  
; Created by: Shawn Brink  
  
; http://www.sevenforums.com  
  
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html  
  
[-HKEY_CLASSES_ROOT\Directory\shell\runas]  
  
[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]  
  
@="cmd.exe /s /k pushd \"%V\""  

https://blog.csdn.net/qq_19244423/article/details/46662293

posted @ 2018-04-19 23:17  shiningrise  阅读(892)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css