>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.zipUnZip 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