输入路径:

计算机\HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command

新建项名称cmd

 

 右键cmd新建项command:

 

 选中command

 

 双击右边窗口中的默认 - > 弹出对话框填写cmd.exe /s /k pushd "%V"

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

或者使用bat文件:(以管理员身份运行)

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]

"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]

@="cmd.exe /s /k pushd \"%V\""

 

 posted on 2022-08-24 16:13  laremehpe  阅读(35)  评论(0编辑  收藏  举报