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:
00545731
Vues:
7
>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.

Take a look at Thread #502783 Message #502851. To get the list of drives you can use following samplecode
FOR i=ASC("C") TO ASC("Z")
	DO CASE
	CASE DRIVETYPE( CHR(I)) = 3
		? CHR(i), "Local HD"
	CASE DRIVETYPE( CHR(I)) = 4
 		? CHR(i), "Network drive/Removable"
 	ENDCASE	
ENDFOR
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform