Forum Discussion
TonyMro
12 years agoOccasional Contributor
"What
I'm looking for is just a simple way to pickup a file called
"filename1.95.****.zip" reliably every time the test is executed"
Hi Rachel,
Take a look at the aqFileSystem.FindFiles method and the example code for it in TestComplete's help. This method can be used to search through a directory for a file name that meets the specified criteria, and it accepts wildcard characters. If it finds any files that match the criteria, it returns them in an aqObjIterator object that can be evaluated to determine the exact name of the file that you can then use in your test script.
Good luck...
I'm looking for is just a simple way to pickup a file called
"filename1.95.****.zip" reliably every time the test is executed"
Hi Rachel,
Take a look at the aqFileSystem.FindFiles method and the example code for it in TestComplete's help. This method can be used to search through a directory for a file name that meets the specified criteria, and it accepts wildcard characters. If it finds any files that match the criteria, it returns them in an aqObjIterator object that can be evaluated to determine the exact name of the file that you can then use in your test script.
Good luck...
Related Content
- 10 months agooriShalhon
- 4 years agomats2021
- 3 years agoAAB
Recent Discussions
Check PopupMenu exists
Solved2 days agomfoster711- 3 days agosimonaferrara
- 3 days agomacheshmeh