cmd - Autohotkey script to open command prompt -


i've collected script autohotkey forum lets me open command prompt @ location i'm open in windows explorer. if current window not explorer window prompt opens @ location script present. change behavior , make open c:\ if current window not explorer window. i've tried edit script not working desired.

#ifwinactive, ahk_class cabinetwclass controlgettext, address , edit1, ahk_class cabinetwclass if (address <> "") { run, cmd.exe, %address% } else { run, cmd.exe, "c:" } exitapp #ifwinactive 

the command run cmd.exe in c:\ path is

run, cmd.exe, c:\

a full script run cmd window every time this

settitlematchmode, 2 ifwinactive, ahk_class cabinetwclass   controlgettext, address , edit1, ahk_class cabinetwclass else   address =  ; exclude specific windows  ifwinactive, computer   address = ifwinactive, documents   address =  if (address <> "")    run, cmd.exe, %address% else    run, cmd.exe, c:\  exitapp 

Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -