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!

Getting directory list of files 1

Status
Not open for further replies.

davejoyce

Programmer
Jun 26, 2000
29
US
I want to dynamically create a page with the files that exist in a directory and a link to those files so the user can view the document in word. Can this be done in coldfusion, and is there a qualifier that will only return .doc files??<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Thanks,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dave Joyce
 
<FONT FACE=monospace><b><br>&lt;CFDIRECTORY ACTION=&quot;list&quot; DIRECTORY=&quot;C:\mysite\mydirectory&quot; NAME=&quot;thelist&quot; FILTER=&quot;*.doc&quot; SORT=&quot;dirname ASC,filename ASC&quot;&gt;<br><br>&lt;table&gt;<br>&lt;cfoutput query=&quot;thelist&quot;&gt;<br>&nbsp;&nbsp;&lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;<A HREF=" TARGET="_new"> though, that the directory in the CFDIRECTORY statement must be a path on your drive (c:\path) and not a url (<A HREF=" TARGET="_new">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top