Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FFC - _filer - how to get info after it's found a file?
Message
De
18/06/2002 16:52:13
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00669886
Message ID:
00669905
Vues:
19
This message has been marked as the solution to the initial question of the thread.
The FILER Files Collection properties contains PATH, which is the full path to the searched file, as in:
oMyFiler = CREATEOBJECT('Filer.FileUtil')
oMyFiler.SearchPath = 'C:\'
oMyFiler.FileExpression = '*.TXT'
oMyFiler.Subfolder=1
oMyFiler.Find(0)
?oMyFiler.Files.Item(1).Path
In this example the first discovered item with a specified search extension will return its full path via this command (try in command window first).

HTH,

-Irv.



>Hi - I am creating an "Update Wizard" program that we will use to update our vfp software that customers have - it will have to run from a cd and will have to be as automated as possible. Firstly the software will look on the hard drive of the computer for our .exe file then do some checks on it (sketchy here...) and then update/overwrite it...
>Hence....
>I have placed an instance of the FFC _filer on my class and set the properties ok - it appears to find the file OK but I at a loss as how to then get info like path and version etc - I have looked at the code in the base class and it appears to create an object with properties but I just can't seem to get the syntax correct to access the info...
>Any comments appreciated...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform