Using GetNumberOfImagesInFolder ()

The contents of the "images" folder:


ds.css
ico_brittanica.gif
ie.gif
js.js
nc.gif
programming humor.txt

Number of images in the "images" folder:

3

Contents of default.asp :
<!-- The includefile is one level back from the "default.asp" file: -->
<!--#include file ="../../jakes_IO.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="da">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Example use of the GetNumberOfImagesInFolder function</title>
    <link rel="stylesheet" type="text/css" href="/jake.css">
</head>
<body>

    <div align="center"><h1>Using GetNumberOfImagesInFolder ()</h1></div>

    <p><b>The contents of the "images" folder:</b>
    <div class="data">
    <%=filesToLinks("images")%>    
    </div>

    <!-- ***************    HERE IS WHERE IT HAPPENS!!     ****************** -->
    <p><b>Number of images in the "images" folder:</b><br>
    <div class="sample">
    <%=getNumberOfImagesInFolder("images")%>
    </div>
    <!-- ********************************************************************** -->
    
    <p><b>Contents of default.asp :</b><br>
    <span class="source">
    <% response.write(stringToHTML (GetFileContents("default.asp")))%>
    </span>

</body>
</html>