Forum Discussion

Oferv's avatar
Oferv
Super Contributor
13 years ago

TC select hidden file

Hi,



i have random routine that choose random file from random folder,during running i noticed that TC has stopped working because it chose an unsupported file,unsupported by our application,investigate it more i found out that the selected random file was actually hidden file.

does TC is looking in folder that its hidden files are hidden and see all the folder's content including the hidden files?



thanks

2 Replies

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Ofer,



    Yes, TestComplete's APIs, such as the aqFileSystem object, can access hidden and system files and folders.



    If your application doesn't work with hidden files, you could improve your random file selection routine to check the file attributes (e.g. using aqFileSystem.CheckAttributes) and in case of a hidden and/or system file, select another one.