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:
00043604
Vues:
36
>>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

Thanks, Dorris! I got several answers, but yours was the most direct. I'll try it and let you know.

JR
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com
(941) 743-0108
(800) 246-5488
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform