By using wildcards...

Code:

If Exist("c:\image*.txt")