BAT批处理设置Shift右键cmd菜单

Windows Registry Editor Version 5.00

[-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\" & cmd.exe"
 
[-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\" & cmd.exe"
 
[-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\" & cmd.exe"

把这个文件下载保存为名字是cmd.reg的文件。

posted @ 2019-07-01 11:28  余生以学  阅读(833)  评论(0编辑  收藏  举报