Results 1 to 5 of 5

Thread: Directory Listing in HTML

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Cool

    Hey..

    I'm making a webpage for file downloads, and I want it to always be current with the files that are available in the directory.

    I figured if there was some way to get a HTML listing of the files in the directory, it would really take a load off. Anyone have a clue?

    <~Whisper~>

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    Are you periodically creating static web pages? Sounds like you want cgi or ASP or similar...

    Toot

    Some cause happiness wherever they go; others, whenever they go.

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    What type of server are you running on?

    Is it your's?

    The easiest wht would be to write an ActiveX dlll and embed it in an Active Server Page.

    Would this be possible on your server?





    Mark
    -------------------

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    paste this into an Active Server Page


    Code:
    <%@ Language=VBScript %>
    <html>
    
        <%
    	Set fileIO = CreateObject("Scripting.FileSystemObject")
        
    	path=Server.Mappath(".") 
        
    
    	
        Set Dir=fileIO.GetFolder(path)
        Set FileCollect=Dir.Files
        For Each item in FileCollect
      
        Response.Write("<A HREF='" & item.name & "'>" & item.name & "</A><BR>")
      
    	Next
    	set fileIO=Nothing
    %>
    
    </html>
    Mark
    -------------------

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Talking

    Hahaha thanks a million! Now it looks like i get to research ASP in addition to all the other languages i'm dabbling in... You've opened a new world to me :-D

    Thanks again...

    <~Whisper~>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width