Skip to content

Instantly share code, notes, and snippets.

@Eun
Created June 2, 2016 08:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eun/227d4bd5a8ccde1a9a5d1a42ccab01ce to your computer and use it in GitHub Desktop.
Save Eun/227d4bd5a8ccde1a9a5d1a42ccab01ce to your computer and use it in GitHub Desktop.
"Open command window here" for files
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
[HKEY_CLASSES_ROOT\*\shell\cmd\command]
@="cmd.exe /s /k \"pushd \"%%HOMEDRIVE%%\\%%HOMEPATH%%\" & echo >%%TEMP%%\\cmd.vbs set shell = CreateObject(\"WScript.Shell\"):shell.SendKeys \"%1\":CreateObject(\"Scripting.FileSystemObject\").DeleteFile(Wscript.ScriptFullName) & %%TEMP%%\\cmd.vbs\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment