Forum Discussion

rachel_dunlop's avatar
rachel_dunlop
Occasional Contributor
12 years ago

How to use wildcards in a filename?

Hi all,

I've just started using TestComplete and I'm a bit stuck with something.

I need to automate an action where the application imports a file. So far so good. However the filename will change with different versions (version number is in the filename.)

How can I make sure the test can pick up the file each time if part of the filename changes?

I've tried playing with the * and ? wildcards but I mustn't be using them right.



This is a keyword test and the step looks like this:

Item Operations Value

dlgOpen OpenFile C:\Folder\filename1.23.4567.8910.Blah.zip



Its the .8910 part of the filename which will change (in the short term at least).



Can someone please help?

17 Replies