Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find out all the Word Doc / Excel Worksheet with psw pro
Message
De
06/12/1999 09:50:43
 
 
À
06/12/1999 02:19:43
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00298323
Message ID:
00299153
Vues:
24
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform