Instantly share code, notes, and snippets.

Embed
What would you like to do?
"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