<!--- Directory to scan for images --->
<CFSET Dir = ExpandPath("../images")>

<!--- Get GIF and JPG file listing, via custom tag --->
<CF_GetDirectoryContents
  Directory="#Dir#"
  Filter="*.gif;*.jpg"
  Name="GetAll">

<HTML>
<HEAD><TITLE>Images Folder</TITLE></HEAD>
<BODY>
<H2>Images Folder</H2>

<!--- Display all files together as a list --->
<CFOUTPUT>
  <P>There are #GetAll.RecordCount# images in #Dir#:<BR>
  <OL>
    <CFLOOP QUERY="GetAll">
      <LI><A HREF="../images/#Name#">#GetAll.Name#</A> 
    </CFLOOP>  
  </OL>
</CFOUTPUT>

</BODY>
</HTML>


