How to find a file if the location is unknown
I need to find a file whose location is unknown. Is there any way we could find file's location using file name in UFT?
Do you mean use UFT as a search utility? Sure, you could write some vbs code to do that. But that would just be some simple fso operations, would not require any UFT/QTP functionality. Would just be something like:
For each folder in subfolders
If file exists then mark it found and exit loop
Lots of examples if you just google "vbs search for file"
Could also look into invoking windows' built in search functionality.
Scripting Windows Desktop Search 3.0