Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search drives for .SCX files using VFP .PRG?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00545663
Message ID:
00545839
Vues:
9
>I have never done this, but would like to see some sample code for searching drives (C:, D:, E:, F:) for .SCX files (forms). When I find a .SCX file I want to USE it and run the program I have written against the .SCX file's form DB/table and then move on to the next .SCX file's form DB/table and run my program against it and so on... What my program does is look at the form's DB and extracts the ControlSource and HelpContextID and inserts them into my data dictionary DB. But I need an easy way to search for the .SCX files so I can inspect them with my program for my data dictionary.
>
>Thanks for the help. I will be researching this myself, but in the meantime, I appreciate your inputs.

I'm assuming that this is for development purposes. You could try what I use in similar situations: the Shell.Application object. It requires the Active Desktop has been installed, meaning that on a Win95 box IE 4.01 with that option has been installed at some point. In later versions of Windows, it's installed by default. All you have to do from the command window is
oShell = CREATEOBJECT('Shell.Application')
oShell.FindFiles
This brings up the same dialog that's in the Windows Explorer's Find option. Enter the search expression, pick a drive (or drives in the case of local drives) and click find. Then drag any resulting matches into the command window and it open in the appropriate designer.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform