.NET 3.0 has a number of command line utilities like the service utility (svcutil.exe) that can be awkward to run if you're already in Explorer, deep in a folder structure. Phillip's svn blog reminded me of a trick with the registry to get the command prompt window populated with the current path.
You can use this technique for any command line or batch file you want to attach to the Explorer context menu.
Registry export listing:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\Command Prompt]@=".NET 3.0 Command Prompt"
[HKEY_CLASSES_ROOT\Folder\shell\Command Prompt\command]@="C:\\WINDOWS\\system32\\cmd.exe /E:ON /V:ON /T:0E /K \"C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0\\Bin\\SetEnv.Cmd\""
Built in to Windows Vista
If you're running Vista then you're in luck, it's built-in! Check out this article showing how to shift-right-click a folder to get the "Command Prompt Here" context menu item:
http://blogs.msdn.com/tims/archive/2006/09/18/windows-vista-secret-1-open-command-prompt-here.aspx
Remember Me
a@href@title, i, strike, u
Copyright © 2003-2008 Falafel Software Inc.
Subscribe to Falafel Blogs
The opinions expressed herein are Falafel's employees own personal opinions and do not represent Falafel Software's view in any way in case they go bananas!