Friday, April 23, 2010

Windows Explorer: Open CMD Prompt at Location

To add the ability to open a folder location in a CMD prompt via the Explorer context menu, do the following:
  1. Open regedit. This can be done via the Run prompt.
  2. Create the key HKEY_CLASSES_ROOT\Directory\shell\open_cmd_at_loc.
  3. Change the default value for this key to Open CMD at Location.
  4. Create a the key HKEY_CLASSES_ROOT\Directory\shell\open_cmd_at_loc\command.
  5. Change the default value for this key to cmd.exe /k "cd %L".
  6. Close regedit.
  7. Right click on a folder. The changes should take effect immediately.

No comments:

Post a Comment