Windows 中右键菜单增加进入命令行项目
新建一个 .reg 文件
输入以下内容
1 2 3 4 5 6 7 8 9 10
| Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\mycmd] @="@shell32.dll,-8506" "Extended"="" "ShowBasedOnVelocityId"=dword:00639bc8 "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\mycmd\command] @="cmd.exe /s /k pushd \"%V\""
|
执行(双击)新建的 .reg 文件,弹出对话框选“是”。