Skip to content

Instantly share code, notes, and snippets.

@rickdailey
Created February 1, 2014 00:31
Show Gist options
  • Save rickdailey/8746155 to your computer and use it in GitHub Desktop.
Save rickdailey/8746155 to your computer and use it in GitHub Desktop.
SetTitleMatchMode, 2
CmdLinePath:= "U:\Software\cmder\cmder.exe"
#`::
If WinActive("ahk_class CabinetWClass") ; for use in explorer.
{
ClipSaved := ClipboardAll
Send !d
Sleep 10
Send ^c
Run %CmdLinePath% /start "%clipboard%"
Clipboard := ClipSaved
ClipSaved =
}
Else
{
Run %CmdLinePath%
}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment