Skip to content

Instantly share code, notes, and snippets.

@SaxxonPike
Created October 13, 2015 13:25
Show Gist options
  • Save SaxxonPike/18d189f5db310154332e to your computer and use it in GitHub Desktop.
Save SaxxonPike/18d189f5db310154332e to your computer and use it in GitHub Desktop.
Windows: Open Command Prompt in any folder through the Explorer context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\shell\CLIHere]
@="Command Prompt inside this folder"
[HKEY_CLASSES_ROOT\directory\shell\CLIHere\command]
@="cmd.exe /k cd /d \"%1\" && cls"
[HKEY_CLASSES_ROOT\directory\Background\shell\CLIHere]
@="Command Prompt here"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\directory\Background\shell\CLIHere\command]
@="cmd.exe /k cd /d \"%V\" && cls"
@SaxxonPike
Copy link
Author

Rollback REG file:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\directory\shell\CLIHere]
[-HKEY_CLASSES_ROOT\directory\shell\CLIHere\command]
[-HKEY_CLASSES_ROOT\directory\Background\shell\CLIHere]
[-HKEY_CLASSES_ROOT\directory\Background\shell\CLIHere\command]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment