| 127 | 127 | |
| 128 | 128 | for( final var dir : dirs ) { |
| 129 | final var p = Path.of( dir ).resolve( exe ); | |
| 129 | Path p; | |
| 130 | ||
| 131 | try { | |
| 132 | p = Path.of( dir ).resolve( exe ); | |
| 133 | } catch( final Exception ex ) { | |
| 134 | clue( ex ); | |
| 135 | continue; | |
| 136 | } | |
| 130 | 137 | |
| 131 | 138 | for( final var extension : EXTENSIONS ) { |
| 28 | 28 | private static final Pattern VAR_PATTERN = compile( VAR_REGEX ); |
| 29 | 29 | |
| 30 | private static final String REG_REGEX = "\\s*path\\s+REG_EXPAND_SZ\\s+(.*)"; | |
| 30 | private static final String REG_REGEX = "\\s*path\\s+REG_.*SZ\\s+(.*)"; | |
| 31 | 31 | private static final Pattern REG_PATTERN = compile( REG_REGEX ); |
| 32 | 32 |