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...