But this is highly inefficient and will not give you complete filenames if any of your filenames contain whitespace characters. The suggestions in your other thread today: Browse directory would be much better ways to do this.
Also, note that *prueba.txt will not match any of the files listed in the other thread. (There is a HUGE difference between *prueba.txt and prueba*.txt !)