Cmd.exe startup command in c: \
run, cmd.exe, c: \
The full script that will run the cmd window each time will look like this:
SetTitleMatchMode, 2 ifwinactive, ahk_class CabinetWClass ControlGetText, address , edit1, ahk_class CabinetWClass else address = ; Exclude specific windows ifwinactive, My Computer address = ifwinactive, My Documents address = if (address <> "") Run, cmd.exe, %address% else Run, cmd.exe, C:\ ExitApp
source share