public static RegistryEntry getValue ( String branch , String entry , short type ) throws RegistryException , IOException , InterruptedException { String [ ] cmd = new String [ ] { "reg" , "query" , cleanBrunch ( branch ) , "/v" , entry } ; RegistryEntry [ ] rst = filter ( executeQuery ( cmd ) , branch , type ) ; if ( rst . length == 1 ) { return rst [ 0 ] ; // if(type==RegistryEntry.TYPE_ANY || type==r.getType()) return r; } return null ; }
gets a single value form the registry