Is there a way to start cmd (using Autohotkey or even more preferably Hotkeyz) in the directory in which Explorer is currently (i.e. in the directory which is currently open in Windows Explorer)?
While waiting in here, I also stumbled onto a script which supposedly should do that, but it doesn't work. Can anyone see the possible problem which may stop her from doing the above mentioned.
Full script below, c/pasted from here
; Opens a command prompt with the current folder
; when you press Ctrl+Alt+H in Explorer
; or the command prompt
^!h::
if WinActive("ahk_class CabinetWClass")
or WinActive("ahk_class ExploreWClass")
{
ClipSaved := ClipboardAll
Send !d
Sleep 10
Send ^c
Run, cmd /K "cd /D `"%clipboard%`""
Clipboard := ClipSaved
ClipSaved =
return
}
else if WinActive("ahk_class ConsoleWindowClass")
{
Send ^c
Sleep 10
Send explorer .{Enter}
Sleep 10
return
}
exit