Hello. I am looking to check some boxes on a TreeView, and was wondering if there is away to pattern match in the path, as this is different on different OS's. e.g. Pre-Vista tree: -My Computer -Coll on 'viper' (V:\) -Box1 Post Vista tree: -Computer -Coll (\\viper) (V:\) -Box1 At the moment I have to detect the OS and then run a different ControlTreeView command, e.g. ControlTreeView("Title","text","[CLASS:SysTreeView32; INSTANCE:1]","check","My Computer|Coll on 'viper' (V:\)|Box1") or ControlTreeView("Title","text","[CLASS:SysTreeView32; INSTANCE:1]","check","Computer|Coll (\\viper) (V:\)|Box1") Is there away fo me to be able to pattern match so that I can just write a single command which will work in either case? e.g. ControlTreeView("Title","text","[CLASS:SysTreeView32; INSTANCE:1]","check","*Computer|Coll * viper * (V:\)|Box1") I am currently using Opt("WinTitleMatchMode", 2). Any help appriciated. Adam