>How to search a file in a harddisk for its subdirectories?
>
>LOCFILE() can only locate files in default and 'pathed' directory.
>I need to search all over the harddisk.
There are at least a couple of ways, all of which require a bit of coding to use. The most obvious approach is the use of ADIR() to build an array containing the directory hierarchy of a drive, and then checking each folder found to see if the file you want is available. Unless your directory hierarchy is static while your program is running, you need to build the list and traverse it each time you want to do a file search; if your directory hierarchy is fixed, build the list once at the first invocation, and save it to be used again later.
The same thing can be done traversing the folder hierarchy of a drive by invoking the NameSpace method of Automation object Shell.Application to get a folder object, and then traversing the collections of the contained Folder Objects. If you do this a lot and your drive hierarchy isn't static, I'd seriously consider using the Automation Object.