Xp 下有一款对于开发人员来说很好用的工具 CmdHerePowertoySetup。如果想在命令提示符窗口下进到某个目录,不用再cd过去了。
直接鼠标右键那个目录,选择open command window here 就OK了。
Win 7 已经把这个功能集成进来,不用再单独安装了。按住Shift 键的同时,点鼠标右键,同样有open command window here 选项。
Windows 7 tip: (elevated) command prompt anywhere
by Lee Mathews (RSS feed) Feb 9th 2009 at 9:00AM
The command prompt here power toy was a feature that a lot of users requested be built-in to Windows 7. Microsoft listened, and added it to a secondary context menu.
By holding shift and right-clicking a folder, you'll see additional commands not listed on the standard menu, such as open in new process, copy as path, and open command window here. Suppose you need a command window with elevated privileges. Then what?
In Windows Vista, it could be done through the start menu by typing cmd into the search box and holding shift+control and hitting enter. This works in Windows 7 as well.
Combine the two, and you've got a right-click elevated command window shortcut: shfit+control+right click on a folder and choose open command window. Check your title bar: if it starts with Administrator, you're set!
Some other sites have posted registry hacks to add a context menu entry for the admin option, but why bother? It's already there - just hidden!
http://www.downloadsquad.com/2009/02/09/windows-7-tip-elevated-command-prompt-anywhere/