Skip to content

Instantly share code, notes, and snippets.

@stevehorn
Created September 10, 2010 14:40
Show Gist options
  • Select an option

  • Save stevehorn/573744 to your computer and use it in GitHub Desktop.

Select an option

Save stevehorn/573744 to your computer and use it in GitHub Desktop.
;Use this AutoHotKey script to launch Console2 with the working directory set to the directory you have open in Windows Explorer.
;Think "open command window here"
;Shortcut is CTRL+ALT+H
#IfWinActive ahk_class CabinetWClass ; for use in explorer.
;Open command window here
^!h::
Sleep 100
ClipSaved := ClipboardAll
Sleep 100
Send !d
Sleep 100
Send ^c
Run, "C:\Program Files\Console2\Console.exe" -d "%clipboard%`"
Clipboard := ClipSaved
ClipSaved =
return
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment