Advertisement
Guest User

Run BAT files in Explorer AHK

a guest
Sep 30th, 2018
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;runs bat files I want in explorer folders, first by getting the active directory of focused explorer window. (Set explorer to show full path in window title)
  2.  
  3. #SingleInstance force ;only one instance of this script may run at a time!
  4. Menu, Tray, Icon, shell32.dll, 4
  5. ;Above changes the icon in the system tray from the usual AHK icon. Play with the numbers to pick your own.
  6.  
  7. ;make video directories for new projects
  8. +!q::
  9. WinGetTitle, Title, ahk_class CabinetWClass
  10. ;   msgbox,% Title
  11.     Run, E:\Documents\WindowsMods\MakeVideoDirectories.bat /E:ON "%Title%" /E:ON, "%Title%"
  12. return
  13.  
  14. ;compress files in directory w/ CRF14
  15. +!r::
  16. WinGetTitle, Title, ahk_class CabinetWClass
  17. ;   msgbox,% Title
  18.     Run, E:\Documents\WindowsMods\crf14.bat /E:ON "%Title%" /E:ON, "%Title%"
  19. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement