>One more question ? Suppose the Word's DOCs had been saved in different directory/sub directory. How can I use ADir() to locate the files ? Does I need to use the SET PATH TO or SET DEFAULT TO functions Would you please help me how to do this.
>
ADIR() returns a set of files matching a specified wildcard for a directory. It's not a FindFile dialog that will search all branches of all trees. You can use recursive traversal of directories, searching each dirctory for possible files of interest. Again, the basic approach is demonstrated in the previously-referenced posts; it's a matter of adapting it to your needs.
If you use ADIR(), you'll need to change directories using SET DEFAULT/CD - SET PATH will not help. george's example demonstrates the techniques.
One advantage to using the Scripting.FileSystemObject is that it does not require you to change the cuurrent VFP directory.