添加cmd命令到注册表

文件cmd.reg内容:

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\"" 


----------------------------------------------

文件remove.reg文件内容:

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\Background\shell\runas]

[-HKEY_CLASSES_ROOT\Drive\shell\runas]


你可能感兴趣的:(Python基础)