![](https://img2022.cnblogs.com/blog/1986832/202208/1986832-20220824161024057-1377450911.png)
输入路径:
计算机\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\""