Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DIR listing
Message
De
01/06/1999 04:40:45
 
 
À
30/05/1999 22:29:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00224589
Message ID:
00224816
Vues:
22
>How to get only the names of the text (*.txt) files from a user specified directory at runtime. The output should be same as dir *.txt /b (at DOS prompt).

The easiest thing to do is to avoid dumping into a text file at all and use the ADIR() command to create an array; if neded, you can dump the result to a file or cursor after the fact:

DECLARE aFileList[1,5]
? ADIR(aFileList,ADDBS(FULLPATH(cSomePath))+'*.TXT') && prints # of files found

>When RUN command is executed within VFP, DOS window is displayed. How to suppress the same.

You can use my API_APPRUN class, which can run DOS commands hidden or minimized without the DOS box ever appearing. it can be downlaoded from here on UT,
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform