local hwnd = win.handle("c=TTOTAL_CMD") local Panel = ifelse(tc.active(hwnd) == "left", 1, 2) local List = win.childhandlelist(hwnd, "c=TPathPanel") local Path = win.gettext(word(List, Panel)) Path = file.folder(Path) for (length(Path) > 1) Panel = Path ++ "/_local.bar" if (validpath(Panel)) do do("d:/Utils/TotalCmd/TCMenu/TCmenu.exe", Panel) quit else Path = file.folder(Path) endif endfor win.sendmessage(hwnd, 0x400+51, 540, 0)