1. 当前路径打开cmd
Manually add the context menu
1. In explorer, open Tools, Folder Options.2. Select the File Types tab.
3. For Windows XP: Go to NONE / Folder.
6. Select the entry labeled Folder
7. For Windows XP: Press Advanced button.
9. Select New
10. In the action block type "Command Prompt" without the quotes.
11. In the app block type "cmd.exe" without the quotes.
12. Save and exit Folder Options.
Now right click on Start, you should have a new drop down option. Open explorer and right click on a folder, select Command Prompt and a command window opens in that folder.
Read this thread for some information on how to remove the context menu:
HKEY_CLASSES_ROOT\Folder\shell
deleted the ("Command_Prompt") key
That seems to clear out the second entry in:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell
Otherwise, I would have deleted it here also.
I didn't need to reboot to have the change take effect. I just closed all Explorer windows, opened one, right-clicked, and the pick was gone.
或者修改注册表:
#add "Cmd here" in context menu: open cmd in the folder
[HKEY_CLASSES_ROOT\Folder\shell\CmdHere]
@="Command Prompt Here"
[HKEY_CLASSES_ROOT\Folder\shell\CmdHere\command]
@="cmd.exe /d cd \"%1%"
2. 右键添加用notepadd++ 打开
#add "Open with Notepad++" in context menu
[HKEY_CLASSES_ROOT\*\shell\Open with Notepad++\command]
@="<path>\Notepad++\notepad++.exe %1"
3. 修改IE查看源文件编辑器
#view src with notepad++ in IE
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name]
@="<path>\Notepad++\notepad++.exe"
4. 删除.svn文件夹
#add "deleteSvnFolder" in context menu. When you select it, it removes all folders named .svn inside the folder and it's children (it does nothing if the project's not under Subversion source control)[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="deleteSvnFolder"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
参考 Jon Galloway