Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DIR command output??
Message
De
11/08/2011 12:45:16
 
 
À
11/08/2011 09:13:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01520669
Message ID:
01520722
Vues:
71
>Is there any way to make the output from the DIR command show more information about the files in the current directory? I would expect to see output much like the old DOS command where it shows columns of information that include the filename, date, and file size in a vertical flowing format.
>
>It seems that the DIR command in FoxPro is designed to work with DBF files be default, and it does show more info about those files.
>
>However, if you use Dir *.*, then what FoxPro spits out is some dorky sideways list of just file names, without the date and filesize. It's just really hard to read. What were they thinking?
>
>
>Has anyone developed a better DIR command for VFP????

Download http://www.glrsoftware.com/download/download.asp?file=query.zip

UnZip and copy the Query.app file to your project folder.

To get a list of files displayed on the desktop, type
=Query([Select * from file "*.*" into screen display])
To generate a cursor...
=Query([Select * from file "*.*" into cursor qFiles])
To more specific...
=Query([Select padr(Name,40) as FileName,Modified,Size from file "*.*" into screen browse])
The Query utility can gather data from dozens of sources and output most those same sources. Check out the documents in the Document folder.

Have fun.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform