Thanks very much. I'd more or less done this, except for the ~ character as meaning default propert.
Is this rather strange restriction due to put on the feature list in the future?
If a registry key holds the path to a file (e.g. c:\path to a file\file.exe) then will the search you suggest allow ...