Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Run CMD.EXE in path shown in Explorer caption, otherwise in c:\windows
- #c::
- IfWinActive ahk_class CabinetWClass
- {
- WinGetActiveTitle, pathInCaption
- If RegExMatch(pathInCaption, "i)^[a-z]:\\")
- Run cmd.exe /K "cd /d %pathInCaption%"
- Else
- MsgBox % "Full path must be shown in Explorer caption for this hotkey to work. UNC paths not allowed."
- } Else
- Run cmd.exe /K "cd /d c:\windows\"
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement