One Star

[resolved] Possible to use filemask in tFileExist

I am trying to find out if a file exists in a directory. I am using a tFileExist and for the file name/stream I am putting:
"C:/Users/user/Documents/directory/0697.*"
So I am trying to find out if any files starting with 0697.
I have done this but when I run it the tfileExist returns false even if there is a file in the directory starting with 0697.
Any Suggestions?
2 REPLIES
One Star

Re: [resolved] Possible to use filemask in tFileExist

Hi, you should use tfilelist and add a filemask.
Afterward you can use iterate (for each file found) or runIf
Moderator

Re: [resolved] Possible to use filemask in tFileExist

Hi,
To make it clear, please see my screenshots
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.