Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A Fox command dos's DIR MYFILE.TXT >FILELIST.TXT /S
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00043406
Message ID:
00043415
Vues:
39
>I need a VFP command which will dump the results of a search command into a file. My program needs to look for any file meeting the DOS criteria XFER*.DBF. These files could be in any subdirectory. THE DOS command to do it would be:
>
>DIR XFER*.DBF >FILELIST.TXT /S
>
>This isn't good in VFP; it's slow, and it has to use a run-time DOS window. However, I'll use it if necessary. I would like to know, though, how to squelch that run-time DOS window. I see in the manuals how to resize it, but I'd like to eliminate it completely.
>
>Thanks in advance,
>JR

How about

numfiles = ADIR(xfers,'XFER*.DBF',D) ** This will put them into an array. The 'D' tells it to look in subdirectories
sele xferfls ** .dbf with structure matching ADIR array
append from array xfers
copy to filelist.txt
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform