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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Files in Directory

Status
Not open for further replies.

pleddy

IS-IT--Management
Jul 2, 2001
5
US
Im trying to create a script that will take a directory off of a webserver and display the filenames of all of the image files that are located in that directory. Can anyone offer any suggestions.

-pleddy
 
<CFDirectory ACTION=&quot;LIST&quot; NAME=&quot;GetPics&quot; DIRECTORY=&quot;directory path&quot; filter=&quot;*.gif, *.jpg&quot; SORT=&quot;datelastmodified DESC&quot;>
John Hoarty
jhoarty@quickestore.com
 
Ooops, correction on my last post. Only one mask filter can be applied at a time:

<CFDirectory ACTION=&quot;LIST&quot; NAME=&quot;getGifs&quot; DIRECTORY=&quot;directory path&quot; filter=&quot;*.gif&quot; SORT=&quot;datelastmodified DESC&quot;>

<CFDirectory ACTION=&quot;LIST&quot; NAME=&quot;getJpegs&quot; DIRECTORY=&quot;directory path&quot; filter=&quot;*.jpg&quot; SORT=&quot;datelastmodified DESC&quot;> John Hoarty
jhoarty@quickestore.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top