Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New FAQ - Search folders and Subfolders for files

Status
Not open for further replies.

GriffMG

Programmer
Mar 4, 2002
6,335
FR
faq184-6312

I've tidied up the code and posted it as a FAQ

Basically, it's a simple function that takes a few parameters and returns the name and path of a table containing a list of the files in a form similar to ADIR().

Comments welcome


Regards

Griff
Keep [Smile]ing
 
Would it be fairly easy to modify to pull all the files from a directory into a listbox to select and resort etc?

I hate using GetFile() because I have to change to Detail View and then resort the files to get the newest ones.



Don Higgins
 
Yes,

You could just make the output table the source of the list box - or even do a select into the list box

Select * from ... order by dtos(filedate)+filetime

or something.





Regards

Griff
Keep [Smile]ing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top