添加注册表:
1 Windows Registry Editor Version 5.00 2 3 [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere] 4 @="@shell32.dll,-8506" 5 "Extended"=- 6 "Icon"="imageres.dll,-5323" 7 "NoWorkingDirectory"="" 8 9 [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHerecommand] 10 @="cmd.exe /s /k pushd "%V"" 11 12 13 [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere] 14 @="@shell32.dll,-8506" 15 "Extended"=- 16 "Icon"="imageres.dll,-5323" 17 "NoWorkingDirectory"="" 18 19 [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand] 20 @="cmd.exe /s /k pushd "%V"" 21 22 23 [HKEY_CLASSES_ROOTDriveshellOpenCmdHere] 24 @="@shell32.dll,-8506" 25 "Extended"=- 26 "Icon"="imageres.dll,-5323" 27 "NoWorkingDirectory"="" 28 29 [HKEY_CLASSES_ROOTDriveshellOpenCmdHerecommand] 30 @="cmd.exe /s /k pushd "%V"" 31 32 33 [HKEY_CLASSES_ROOTLibraryFolderBackgroundshellOpenCmdHere] 34 @="@shell32.dll,-8506" 35 "Extended"=- 36 "Icon"="imageres.dll,-5323" 37 "NoWorkingDirectory"="" 38 39 [HKEY_CLASSES_ROOTLibraryFolderBackgroundshellOpenCmdHerecommand] 40 @="cmd.exe /s /k pushd "%V""
删除注册表:
1 Windows Registry Editor Version 5.00 2 3 [-HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere] 4 5 [-HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere] 6 7 [-HKEY_CLASSES_ROOTDriveshellOpenCmdHere] 8 9 [-HKEY_CLASSES_ROOTLibraryFolderBackgroundshellOpenCmdHere]
效果: