Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wildcard Matches for Directories
Message
De
22/02/2005 11:53:16
 
 
À
21/02/2005 14:30:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows '98
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
00988969
Message ID:
00989301
Vues:
37
>Is there a function out there that will perform similar to the sys(2000) function, but instead of rolling through files, one that will work with wildcard matches on folders? Basically, I have a folder with a bunch of folders within that with the first word as a username from my program, but it also has additional information in the folder's name following the username, but it seperated by a space. I want to be able to access that folder based on whom is logged in and use that username to go into that folder. Any ideas?

Hi There :)
You can have look at my XDIR tool here at downloads.

It is class object doing recursive durectory scan
with all subfolders and files within.

Class will fire method
'with_directory'
'with_file'
for every subfolder/file along the path, passing apropriate path/filename as
parameter.
Once you get folder name as parameter you can easily filter it against
your list and add it to cursor or array for further processing.
There is sample there doing exactly that.

Rgds++
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform