How to select all files with the same name, but with extension html

try to modify this script:

or modify this: